Skip to content

Commit 05ebb11

Browse files
authored
Merge pull request #1511 from Revisto/fix/1502-graceful-container-shutdown
fix(docker): improve container shutdown reliability and speed
2 parents c9b215b + 793fe2c commit 05ebb11

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docker-compose.dev.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ services:
1313
- MYSQL_DATABASE=cypht
1414
- MYSQL_USER=cypht
1515
- MYSQL_PASSWORD=cypht_password
16+
stop_grace_period: 30s
1617
cypht:
1718
build:
1819
context: .
@@ -42,3 +43,4 @@ services:
4243
- USER_CONFIG_TYPE=DB
4344
extra_hosts:
4445
host.docker.internal: host-gateway # for xdebug
46+
stop_grace_period: 30s

docker/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ rm -r /var/www
3232
ln -s $(pwd)/site /var/www
3333

3434
# Start services
35-
/usr/bin/supervisord -c /etc/supervisord.conf
35+
exec /usr/bin/supervisord -c /etc/supervisord.conf

0 commit comments

Comments
 (0)