add: container name, depend_on, env_file, maria db

This commit is contained in:
starnakin 2023-10-05 12:15:15 -04:00
parent ed3195f536
commit 1d5eb6c1b6

View File

@ -1,17 +1,35 @@
services:
nginx:
container_name: nginx
image: nginx
build: nginx
ports:
- "443:443"
volumes:
- wordpress:/var/www/wordpress
depends_on:
- wordpress
wordpress:
container_name: wordpress
image: wordpress
build: wordpress
volumes:
- wordpress:/var/www/wordpress
depends_on:
- mariadb
env_file:
- .env
mariadb:
container_name: mariadb
image: mariadb
build: mariadb
volumes:
- mariadb:/data
env_file:
- .env
volumes:
wordpress:
mariadb: