Update production Docker Compose to switch images to MDHub registry
- Replace Docker Hub image references with MDHub equivalents across all services. - Update environment variables and volume bindings for web and app services. - Add production-specific environment variables (`APP_ENV`) for queue and scheduler.
This commit is contained in:
@@ -1,15 +1,29 @@
|
||||
#version: '3.7'
|
||||
services:
|
||||
web:
|
||||
# image: korelf/my-projects-website-web:0.7.0 # docker hub
|
||||
image: docker.mdhub.kor-elf.net/kor-elf/my-projects-website-web:0.7.0 # MDHub
|
||||
# restart: always
|
||||
depends_on:
|
||||
- app
|
||||
ports:
|
||||
- ${DOCKER_WEB_PORT}:80
|
||||
environment:
|
||||
IS_GZIP: 0
|
||||
# FRONTEND_PORT: ${DOCKER_WEB_PORT}
|
||||
BACKEND_HOST: app
|
||||
BACKEND_PORT: 9000
|
||||
TRUSTED_PROXY_CIDR: 172.16.0.0/12
|
||||
volumes:
|
||||
- ./app/storage/app/public:/usr/share/nginx/html/storage
|
||||
app:
|
||||
# image: korelf/my-projects-website:0.6.0 # docker hub
|
||||
image: docker.mdhub.kor-elf.net/kor-elf/my-projects-website:0.6.0 # MDHub
|
||||
# image: korelf/my-projects-website-app:0.7.0 # docker hub
|
||||
image: docker.mdhub.kor-elf.net/kor-elf/my-projects-website-app:0.7.0 # MDHub
|
||||
# restart: always
|
||||
depends_on:
|
||||
- db
|
||||
- app-redis
|
||||
- captcha-app
|
||||
ports:
|
||||
- ${DOCKER_APP_PORT}:9000
|
||||
env_file: app/.env
|
||||
environment:
|
||||
CONTAINER_ROLE: app
|
||||
@@ -20,8 +34,8 @@ services:
|
||||
# - ./app/translate/authorized_key.json:/var/www/html/storage/translation_service/authorized_key.json
|
||||
|
||||
queue:
|
||||
# image: korelf/my-projects-website:0.6.0 # docker hub
|
||||
image: docker.mdhub.kor-elf.net/kor-elf/my-projects-website:0.6.0 # MDHub
|
||||
# image: korelf/my-projects-website-app:0.7.0 # docker hub
|
||||
image: docker.mdhub.kor-elf.net/kor-elf/my-projects-website-app:0.7.0 # MDHub
|
||||
# restart: always
|
||||
depends_on:
|
||||
- app
|
||||
@@ -29,6 +43,7 @@ services:
|
||||
- app-redis
|
||||
environment:
|
||||
CONTAINER_ROLE: queue
|
||||
APP_ENV: production
|
||||
env_file: app/.env
|
||||
volumes:
|
||||
- ./app/storage/app:/var/www/html/storage/app
|
||||
@@ -36,8 +51,8 @@ services:
|
||||
# - ./app/translate/authorized_key.json:/var/www/html/storage/translation_service/authorized_key.json
|
||||
|
||||
scheduler:
|
||||
# image: korelf/my-projects-website:0.6.0 # docker hub
|
||||
image: docker.mdhub.kor-elf.net/kor-elf/my-projects-website:0.6.0 # MDHub
|
||||
# image: korelf/my-projects-website-app:0.7.0 # docker hub
|
||||
image: docker.mdhub.kor-elf.net/kor-elf/my-projects-website-app:0.7.0 # MDHub
|
||||
# restart: always
|
||||
depends_on:
|
||||
- app
|
||||
@@ -45,6 +60,7 @@ services:
|
||||
- app-redis
|
||||
environment:
|
||||
CONTAINER_ROLE: scheduler
|
||||
APP_ENV: production
|
||||
env_file: app/.env
|
||||
volumes:
|
||||
- ./app/storage/app:/var/www/html/storage/app
|
||||
|
||||
Reference in New Issue
Block a user