Using staging nginx conf, changing db name

This commit is contained in:
Finley Ghosh 2025-07-23 20:52:43 +10:00
parent b3ce7a1054
commit 87caa649ed

View file

@ -5,7 +5,7 @@ services:
ports:
- "8081:80" # Staging nginx on different port
volumes:
- ./conf/nginx-site.conf:/etc/nginx/conf.d/cmc.conf
- ./conf/nginx-site.stg.conf:/etc/nginx/conf.d/cmc.conf
- ./userpasswd:/etc/nginx/userpasswd:ro
depends_on:
- cmc-stg-php
@ -19,7 +19,7 @@ services:
dockerfile: Dockerfile_stg
container_name: cmc-stg-php
depends_on:
- cmc-stg-db
- db
environment:
MAIL_HOST: mailpit
MAIL_PORT: 1025
@ -30,9 +30,9 @@ services:
- cmc-stg-network
restart: unless-stopped
cmc-stg-db:
db:
image: mariadb:latest
container_name: cmc-stg-db
container_name: db
environment:
MYSQL_ROOT_PASSWORD: secureRootPassword
MYSQL_DATABASE: cmc
@ -58,7 +58,7 @@ services:
DB_NAME: cmc
PORT: 8082
depends_on:
cmc-stg-db:
db:
condition: service_started
ports:
- "8082:8082"