Refactor Docker Compose configurations and add Unraid support
- Update docker-compose files for dev, local, and prod environments - Improve service definitions and environment variable handling - Add Unraid-specific Docker Compose and environment files - Remove deprecated .env.example and dockercomposeforserver.yml - Streamline configuration management across environments
This commit is contained in:
@@ -1,19 +1,17 @@
|
||||
|
||||
name: eamco
|
||||
services:
|
||||
|
||||
frontend_office_prod:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_office_frontend
|
||||
dockerfile: Dockerfile.prod
|
||||
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_office_frontend
|
||||
dockerfile: Dockerfile.prod
|
||||
|
||||
backend_office_prod:
|
||||
restart: always
|
||||
build:
|
||||
context: ../eamco_office_api
|
||||
dockerfile: Dockerfile.prod
|
||||
context: ../eamco_office_api
|
||||
dockerfile: Dockerfile.prod
|
||||
ports:
|
||||
- '9510:80'
|
||||
environment:
|
||||
@@ -25,48 +23,61 @@ services:
|
||||
- SECRET_KEY=${SECRET_KEY}
|
||||
|
||||
money_service_prod:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_money_api
|
||||
dockerfile: Dockerfile.prod
|
||||
ports:
|
||||
- '9513:8000'
|
||||
environment:
|
||||
- MODE=PRODUCTION
|
||||
- POSTGRES_USERNAME=${POSTGRES_USERNAME}
|
||||
- POSTGRES_PW=${POSTGRES_PW}
|
||||
- POSTGRES_SERVER=${POSTGRES_SERVER}
|
||||
- POSTGRES_DBNAME=${POSTGRES_DBNAME}
|
||||
command: 'uvicorn main:app --host 0.0.0.0 --port 8000 --workers 2'
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_money_api
|
||||
dockerfile: Dockerfile.prod
|
||||
ports:
|
||||
- '9513:8000'
|
||||
environment:
|
||||
- MODE=PRODUCTION
|
||||
- POSTGRES_USERNAME=${POSTGRES_USERNAME}
|
||||
- POSTGRES_PW=${POSTGRES_PW}
|
||||
- POSTGRES_SERVER=${POSTGRES_SERVER}
|
||||
- POSTGRES_DBNAME=${POSTGRES_DBNAME}
|
||||
command: 'uvicorn main:app --host 0.0.0.0 --port 8000 --workers 2'
|
||||
|
||||
auto_prod:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_auto_api
|
||||
dockerfile: Dockerfile.prod
|
||||
ports:
|
||||
- '9514:8000'
|
||||
environment:
|
||||
- MODE=PRODUCTION
|
||||
- POSTGRES_USERNAME=${POSTGRES_USERNAME}
|
||||
- POSTGRES_PW=${POSTGRES_PW}
|
||||
- POSTGRES_SERVER=${POSTGRES_SERVER}
|
||||
- POSTGRES_DBNAME=${POSTGRES_DBNAME}
|
||||
command: 'uvicorn main:app --host 0.0.0.0 --port 8000 --workers 2'
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_auto_api
|
||||
dockerfile: Dockerfile.prod
|
||||
ports:
|
||||
- '9514:8000'
|
||||
environment:
|
||||
- MODE=PRODUCTION
|
||||
- POSTGRES_USERNAME=${POSTGRES_USERNAME}
|
||||
- POSTGRES_PW=${POSTGRES_PW}
|
||||
- POSTGRES_SERVER=${POSTGRES_SERVER}
|
||||
- POSTGRES_DBNAME=${POSTGRES_DBNAME}
|
||||
command: 'uvicorn main:app --host 0.0.0.0 --port 8000 --workers 2'
|
||||
|
||||
service_prod:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_service
|
||||
dockerfile: Dockerfile.prod
|
||||
ports:
|
||||
- '9515:8000'
|
||||
environment:
|
||||
- MODE=PRODUCTION
|
||||
- POSTGRES_USERNAME=${POSTGRES_USERNAME}
|
||||
- POSTGRES_PW=${POSTGRES_PW}
|
||||
- POSTGRES_SERVER=${POSTGRES_SERVER}
|
||||
- POSTGRES_DBNAME=${POSTGRES_DBNAME}
|
||||
command: 'uvicorn main:app --host 0.0.0.0 --port 8000 --workers 2'
|
||||
|
||||
authorize_prod:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_authorize
|
||||
dockerfile: Dockerfile.prod
|
||||
context: ../eamco_authorize
|
||||
dockerfile: Dockerfile.prod
|
||||
volumes:
|
||||
- ../eamco_authorize:/app
|
||||
- ../eamco_authorize:/app
|
||||
ports:
|
||||
- '9516:8000'
|
||||
environment:
|
||||
- MODE=PRODUCTION
|
||||
- AUTHORIZE_API_LOGIN_ID=${AUTHORIZE_API_LOGIN_ID}
|
||||
- AUTHORIZE_TRANSACTION_KEY=${AUTHORIZE_TRANSACTION_KEY}
|
||||
- POSTGRES_USERNAME=${POSTGRES_USERNAME}
|
||||
- POSTGRES_PW=${POSTGRES_PW}
|
||||
- POSTGRES_SERVER=${POSTGRES_SERVER}
|
||||
@@ -76,10 +87,10 @@ services:
|
||||
voipms_prod:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_voipms
|
||||
dockerfile: Dockerfile.prod
|
||||
context: ../eamco_voipms
|
||||
dockerfile: Dockerfile.prod
|
||||
volumes:
|
||||
- ../eamco_voipms:/app
|
||||
- ../eamco_voipms:/app
|
||||
ports:
|
||||
- '9517:8000'
|
||||
environment:
|
||||
@@ -99,9 +110,13 @@ services:
|
||||
address_checker_prod:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_address_checker
|
||||
dockerfile: Dockerfile.prod
|
||||
context: ../eamco_address_checker
|
||||
dockerfile: Dockerfile.prod
|
||||
environment:
|
||||
- MODE=PRODUCTION
|
||||
- POSTGRES_USERNAME=${POSTGRES_USERNAME}
|
||||
- POSTGRES_PW=${POSTGRES_PW}
|
||||
- POSTGRES_SERVER=${POSTGRES_SERVER}
|
||||
- POSTGRES_DBNAME=${POSTGRES_DBNAME}
|
||||
ports:
|
||||
- '9518:8000'
|
||||
|
||||
Reference in New Issue
Block a user