Skip to content

Commit

Permalink
Make var/cache ephemeral (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
karniv00l authored Mar 1, 2021
1 parent 12681c9 commit c50b53e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,15 @@ services:
sysctls:
net.core.somaxconn: 2048
command: >
bash -c 'bin/console cache:clear &&
bin/console cache:warmup &&
bin/console d:m:m --no-interaction &&
bash -c 'bin/console d:m:m --no-interaction &&
bin/console messenger:setup-transports --no-interaction &&
bin/console repman:security:update-db &&
bin/console assets:install &&
php-fpm'
env_file: .env.docker
volumes:
- app-var:/app/var
- /app/var/cache
- app-public:/app/public
depends_on:
- database
Expand All @@ -43,6 +42,7 @@ services:
env_file: .env.docker
volumes:
- app-var:/app/var
- /app/var/cache
depends_on:
- app

Expand All @@ -53,6 +53,7 @@ services:
env_file: .env.docker
volumes:
- app-var:/app/var
- /app/var/cache
- docker-crontabs:/var/spool/cron/crontabs
depends_on:
- app
Expand Down

0 comments on commit c50b53e

Please sign in to comment.