From 1d5eb6c1b647c180708dbd1cdb62be9549f15ace Mon Sep 17 00:00:00 2001 From: starnakin Date: Thu, 5 Oct 2023 12:15:15 -0400 Subject: [PATCH] add: container name, depend_on, env_file, maria db --- srcs/docker-compose.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/srcs/docker-compose.yml b/srcs/docker-compose.yml index c88a3ad..3fcc05a 100644 --- a/srcs/docker-compose.yml +++ b/srcs/docker-compose.yml @@ -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: