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'
|
#version: '3.7'
|
||||||
services:
|
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:
|
app:
|
||||||
# image: korelf/my-projects-website:0.6.0 # docker hub
|
# image: korelf/my-projects-website-app:0.7.0 # docker hub
|
||||||
image: docker.mdhub.kor-elf.net/kor-elf/my-projects-website:0.6.0 # MDHub
|
image: docker.mdhub.kor-elf.net/kor-elf/my-projects-website-app:0.7.0 # MDHub
|
||||||
# restart: always
|
# restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- app-redis
|
- app-redis
|
||||||
- captcha-app
|
- captcha-app
|
||||||
ports:
|
|
||||||
- ${DOCKER_APP_PORT}:9000
|
|
||||||
env_file: app/.env
|
env_file: app/.env
|
||||||
environment:
|
environment:
|
||||||
CONTAINER_ROLE: app
|
CONTAINER_ROLE: app
|
||||||
@@ -20,8 +34,8 @@ services:
|
|||||||
# - ./app/translate/authorized_key.json:/var/www/html/storage/translation_service/authorized_key.json
|
# - ./app/translate/authorized_key.json:/var/www/html/storage/translation_service/authorized_key.json
|
||||||
|
|
||||||
queue:
|
queue:
|
||||||
# image: korelf/my-projects-website:0.6.0 # docker hub
|
# image: korelf/my-projects-website-app:0.7.0 # docker hub
|
||||||
image: docker.mdhub.kor-elf.net/kor-elf/my-projects-website:0.6.0 # MDHub
|
image: docker.mdhub.kor-elf.net/kor-elf/my-projects-website-app:0.7.0 # MDHub
|
||||||
# restart: always
|
# restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- app
|
- app
|
||||||
@@ -29,6 +43,7 @@ services:
|
|||||||
- app-redis
|
- app-redis
|
||||||
environment:
|
environment:
|
||||||
CONTAINER_ROLE: queue
|
CONTAINER_ROLE: queue
|
||||||
|
APP_ENV: production
|
||||||
env_file: app/.env
|
env_file: app/.env
|
||||||
volumes:
|
volumes:
|
||||||
- ./app/storage/app:/var/www/html/storage/app
|
- ./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
|
# - ./app/translate/authorized_key.json:/var/www/html/storage/translation_service/authorized_key.json
|
||||||
|
|
||||||
scheduler:
|
scheduler:
|
||||||
# image: korelf/my-projects-website:0.6.0 # docker hub
|
# image: korelf/my-projects-website-app:0.7.0 # docker hub
|
||||||
image: docker.mdhub.kor-elf.net/kor-elf/my-projects-website:0.6.0 # MDHub
|
image: docker.mdhub.kor-elf.net/kor-elf/my-projects-website-app:0.7.0 # MDHub
|
||||||
# restart: always
|
# restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- app
|
- app
|
||||||
@@ -45,6 +60,7 @@ services:
|
|||||||
- app-redis
|
- app-redis
|
||||||
environment:
|
environment:
|
||||||
CONTAINER_ROLE: scheduler
|
CONTAINER_ROLE: scheduler
|
||||||
|
APP_ENV: production
|
||||||
env_file: app/.env
|
env_file: app/.env
|
||||||
volumes:
|
volumes:
|
||||||
- ./app/storage/app:/var/www/html/storage/app
|
- ./app/storage/app:/var/www/html/storage/app
|
||||||
|
|||||||
Reference in New Issue
Block a user