Skip to content

Commit c50b53e

Browse files
authored
Make var/cache ephemeral (#420)
1 parent 12681c9 commit c50b53e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docker-compose.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,15 @@ services:
2222
sysctls:
2323
net.core.somaxconn: 2048
2424
command: >
25-
bash -c 'bin/console cache:clear &&
26-
bin/console cache:warmup &&
27-
bin/console d:m:m --no-interaction &&
25+
bash -c 'bin/console d:m:m --no-interaction &&
2826
bin/console messenger:setup-transports --no-interaction &&
2927
bin/console repman:security:update-db &&
3028
bin/console assets:install &&
3129
php-fpm'
3230
env_file: .env.docker
3331
volumes:
3432
- app-var:/app/var
33+
- /app/var/cache
3534
- app-public:/app/public
3635
depends_on:
3736
- database
@@ -43,6 +42,7 @@ services:
4342
env_file: .env.docker
4443
volumes:
4544
- app-var:/app/var
45+
- /app/var/cache
4646
depends_on:
4747
- app
4848

@@ -53,6 +53,7 @@ services:
5353
env_file: .env.docker
5454
volumes:
5555
- app-var:/app/var
56+
- /app/var/cache
5657
- docker-crontabs:/var/spool/cron/crontabs
5758
depends_on:
5859
- app

0 commit comments

Comments
 (0)