Create backend network
This commit is contained in:
parent
5e4168a8c5
commit
bd25a7816b
|
@ -8,6 +8,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- "wp:/var/www/html"
|
- "wp:/var/www/html"
|
||||||
networks:
|
networks:
|
||||||
|
- backend
|
||||||
- proxy
|
- proxy
|
||||||
environment:
|
environment:
|
||||||
- WORDPRESS_DB_HOST=mariadb
|
- WORDPRESS_DB_HOST=mariadb
|
||||||
|
@ -34,6 +35,8 @@ services:
|
||||||
mariadb:
|
mariadb:
|
||||||
volumes:
|
volumes:
|
||||||
- "db:/var/lib/mysql"
|
- "db:/var/lib/mysql"
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/mysql-root-passwd-v1
|
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/mysql-root-passwd-v1
|
||||||
- MYSQL_DATABASE=wordpress
|
- MYSQL_DATABASE=wordpress
|
||||||
|
@ -44,6 +47,7 @@ services:
|
||||||
- mysql-user-passwd-v1
|
- mysql-user-passwd-v1
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
backend:
|
||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
|
|
Reference in New Issue