Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make var/cache ephemeral #420

Merged
merged 1 commit into from
Mar 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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