docker: compose: Added internal networks

main
Igor Scheller 6 years ago committed by msquare
parent c3c84a02f3
commit 6415882b1c

@ -9,6 +9,8 @@ services:
- 5000:80 - 5000:80
volumes: volumes:
- static:/var/www/html - static:/var/www/html
networks:
- internal
depends_on: depends_on:
- engelsystem - engelsystem
engelsystem: engelsystem:
@ -23,6 +25,9 @@ services:
MYSQL_DATABASE: engelsystem MYSQL_DATABASE: engelsystem
volumes: volumes:
- static:/var/www/html - static:/var/www/html
networks:
- internal
- database
depends_on: depends_on:
- database - database
database: database:
@ -34,6 +39,12 @@ services:
MYSQL_RANDOM_ROOT_PASSWORD: 1 MYSQL_RANDOM_ROOT_PASSWORD: 1
volumes: volumes:
- db:/var/lib/mysql - db:/var/lib/mysql
networks:
- database
volumes: volumes:
db: {} db: {}
static: {} static: {}
networks:
internal:
database:

Loading…
Cancel
Save