- 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
124 lines
3.3 KiB
YAML
124 lines
3.3 KiB
YAML
name: eamco
|
|
services:
|
|
|
|
frontend_office_local:
|
|
restart: on-failure
|
|
build:
|
|
context: ../eamco_office_frontend
|
|
dockerfile: Dockerfile.local
|
|
ports:
|
|
- '9611:80'
|
|
|
|
backend_office_local:
|
|
restart: always
|
|
build:
|
|
context: ../eamco_office_api
|
|
dockerfile: Dockerfile.local
|
|
ports:
|
|
- '9610:80'
|
|
environment:
|
|
- MODE=LOCAL
|
|
- POSTGRES_USERNAME=${POSTGRES_USERNAME}
|
|
- POSTGRES_PW=${POSTGRES_PW}
|
|
- POSTGRES_SERVER=${POSTGRES_SERVER}
|
|
- POSTGRES_DBNAME=${POSTGRES_DBNAME}
|
|
- SECRET_KEY=${SECRET_KEY}
|
|
|
|
money_service_local:
|
|
restart: on-failure
|
|
build:
|
|
context: ../eamco_money_api
|
|
dockerfile: Dockerfile.local
|
|
environment:
|
|
- MODE=LOCAL
|
|
- POSTGRES_USERNAME=${POSTGRES_USERNAME}
|
|
- POSTGRES_PW=${POSTGRES_PW}
|
|
- POSTGRES_SERVER=${POSTGRES_SERVER}
|
|
- POSTGRES_DBNAME=${POSTGRES_DBNAME}
|
|
ports:
|
|
- '9613:8000'
|
|
command: 'uvicorn main:app --reload --host 0.0.0.0 --port 8000'
|
|
|
|
auto_local:
|
|
restart: on-failure
|
|
build:
|
|
context: ../eamco_auto_api
|
|
dockerfile: Dockerfile.local
|
|
ports:
|
|
- '9614:8000'
|
|
environment:
|
|
- MODE=LOCAL
|
|
- POSTGRES_USERNAME=${POSTGRES_USERNAME}
|
|
- POSTGRES_PW=${POSTGRES_PW}
|
|
- POSTGRES_SERVER=${POSTGRES_SERVER}
|
|
- POSTGRES_DBNAME=${POSTGRES_DBNAME}
|
|
command: 'uvicorn main:app --reload --host 0.0.0.0 --port 8000'
|
|
|
|
service_local:
|
|
restart: on-failure
|
|
build:
|
|
context: ../eamco_service
|
|
dockerfile: Dockerfile.local
|
|
ports:
|
|
- '9615:8000'
|
|
environment:
|
|
- MODE=LOCAL
|
|
- POSTGRES_USERNAME=${POSTGRES_USERNAME}
|
|
- POSTGRES_PW=${POSTGRES_PW}
|
|
- POSTGRES_SERVER=${POSTGRES_SERVER}
|
|
- POSTGRES_DBNAME=${POSTGRES_DBNAME}
|
|
command: 'uvicorn main:app --reload --host 0.0.0.0 --port 8000'
|
|
|
|
authorize_local:
|
|
restart: on-failure
|
|
build:
|
|
context: ../eamco_authorize
|
|
dockerfile: Dockerfile.local
|
|
volumes:
|
|
- ../eamco_authorize:/app
|
|
ports:
|
|
- '9616:8000'
|
|
environment:
|
|
- MODE=LOCAL
|
|
- POSTGRES_USERNAME=${POSTGRES_USERNAME}
|
|
- POSTGRES_PW=${POSTGRES_PW}
|
|
- POSTGRES_SERVER=${POSTGRES_SERVER}
|
|
- POSTGRES_DBNAME=${POSTGRES_DBNAME}
|
|
command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8000'
|
|
|
|
voipms_local:
|
|
restart: on-failure
|
|
build:
|
|
context: ../eamco_voipms
|
|
dockerfile: Dockerfile.local
|
|
volumes:
|
|
- ../eamco_voipms:/app
|
|
ports:
|
|
- '9617:8000'
|
|
environment:
|
|
- MODE=LOCAL
|
|
- POSTGRES_USERNAME=${POSTGRES_USERNAME}
|
|
- POSTGRES_PW=${POSTGRES_PW}
|
|
- POSTGRES_SERVER=${POSTGRES_SERVER}
|
|
- POSTGRES_DBNAME=${POSTGRES_DBNAME}
|
|
- VOIPMS_API_USERNAME=${VOIPMS_API_USERNAME}
|
|
- VOIPMS_API_PASSWORD=${VOIPMS_API_PASSWORD}
|
|
- TARGET_DID=${TARGET_DID}
|
|
- TARGET_SIP_ACCOUNT=${TARGET_SIP_ACCOUNT}
|
|
- TARGET_CELLPHONE_1=${TARGET_CELLPHONE_1}
|
|
- TARGET_CELLPHONE_2=${TARGET_CELLPHONE_2}
|
|
command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8000'
|
|
|
|
address_checker_local:
|
|
restart: on-failure
|
|
build:
|
|
context: ../eamco_address_checker
|
|
dockerfile: Dockerfile.local
|
|
volumes:
|
|
- ../eamco_address_checker:/app
|
|
environment:
|
|
- MODE=LOCAL
|
|
ports:
|
|
- '9618:8000'
|
|
command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8000'
|