Fix docker-compose.production.yml
This commit is contained in:
parent
bb34ae5881
commit
30f84fefe7
|
|
@ -1,23 +1,6 @@
|
||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
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:
|
cmc-php-production:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
|
|
@ -44,6 +27,25 @@ services:
|
||||||
cpus: '0.5'
|
cpus: '0.5'
|
||||||
memory: 512M
|
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:
|
db-production:
|
||||||
image: mariadb:latest
|
image: mariadb:latest
|
||||||
container_name: cmc-db-production
|
container_name: cmc-db-production
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue