Fix docker-compose.production.yml

This commit is contained in:
Karl Cordes 2025-08-06 13:50:16 +10:00
parent bb34ae5881
commit 30f84fefe7

View file

@ -1,23 +1,6 @@
version: '3.8'
services:
nginx-production:
image: nginx:latest
hostname: nginx-production
container_name: cmc-nginx-production
ports:
- "8080:80" # Internal port for production
volumes:
- ./conf/nginx-production.conf:/etc/nginx/conf.d/cmc-production.conf
- ./userpasswd:/etc/nginx/userpasswd:ro
depends_on:
- cmc-php-production
restart: unless-stopped
networks:
- cmc-production-network
environment:
- NGINX_ENVSUBST_TEMPLATE_SUFFIX=.template
cmc-php-production:
build:
context: .
@ -44,6 +27,25 @@ services:
cpus: '0.5'
memory: 512M
nginx-production:
image: nginx:latest
hostname: nginx-production
container_name: cmc-nginx-production
ports:
- "8080:80" # Internal port for production
volumes:
- ./conf/nginx-production.conf:/etc/nginx/conf.d/cmc-production.conf
- ./userpasswd:/etc/nginx/userpasswd:ro
depends_on:
- cmc-php-production
restart: unless-stopped
networks:
- cmc-production-network
environment:
- NGINX_ENVSUBST_TEMPLATE_SUFFIX=.template
db-production:
image: mariadb:latest
container_name: cmc-db-production