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

Update docker-compose.yml to version 3 #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
18 changes: 11 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
version: '2'
version: '3'
networks:
lb_web:
external: true
back:
driver: bridge
volumes:
db_data:
app_data:
services:
db:
image: mysql
volumes:
- ./mysql/runtime:/var/lib/mysql
- db_data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD
networks:
Expand All @@ -18,17 +21,18 @@ services:
links:
- db
volumes:
- ./config:/var/www/html/config
- app_data:/var/www/html
networks:
- back
web:
image: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- app_data:/var/www/html
links:
- app
volumes_from:
- app
ports:
- 80:80
environment:
- VIRTUAL_HOST
networks:
Expand All @@ -38,8 +42,8 @@ services:
image: piwik:fpm
links:
- db
volumes_from:
- app
volumes:
- app_data:/var/www/html
entrypoint: |
bash -c 'bash -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM
Expand Down