Create backend network

This commit is contained in:
Luke Murphy 2020-05-03 01:07:50 +02:00
parent 5e4168a8c5
commit bd25a7816b
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,7 @@ services:
volumes:
- "wp:/var/www/html"
networks:
- backend
- proxy
environment:
- WORDPRESS_DB_HOST=mariadb
@ -34,6 +35,8 @@ services:
mariadb:
volumes:
- "db:/var/lib/mysql"
networks:
- backend
environment:
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/mysql-root-passwd-v1
- MYSQL_DATABASE=wordpress
@ -44,6 +47,7 @@ services:
- mysql-user-passwd-v1
networks:
backend:
proxy:
external: true