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,20 +1,19 @@
|
||||
|
||||
name: eamco
|
||||
services:
|
||||
|
||||
frontend_office_local:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_office_frontend
|
||||
dockerfile: Dockerfile.local
|
||||
ports:
|
||||
- '9611:80'
|
||||
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
|
||||
context: ../eamco_office_api
|
||||
dockerfile: Dockerfile.local
|
||||
ports:
|
||||
- '9610:80'
|
||||
environment:
|
||||
@@ -26,48 +25,61 @@ services:
|
||||
- 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'
|
||||
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'
|
||||
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
|
||||
context: ../eamco_authorize
|
||||
dockerfile: Dockerfile.local
|
||||
volumes:
|
||||
- ../eamco_authorize:/app
|
||||
- ../eamco_authorize:/app
|
||||
ports:
|
||||
- '9616:8000'
|
||||
environment:
|
||||
- MODE=LOCAL
|
||||
- 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}
|
||||
@@ -77,10 +89,10 @@ services:
|
||||
voipms_local:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_voipms
|
||||
dockerfile: Dockerfile.local
|
||||
context: ../eamco_voipms
|
||||
dockerfile: Dockerfile.local
|
||||
volumes:
|
||||
- ../eamco_voipms:/app
|
||||
- ../eamco_voipms:/app
|
||||
ports:
|
||||
- '9617:8000'
|
||||
environment:
|
||||
@@ -100,10 +112,10 @@ services:
|
||||
address_checker_local:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_address_checker
|
||||
dockerfile: Dockerfile.local
|
||||
context: ../eamco_address_checker
|
||||
dockerfile: Dockerfile.local
|
||||
volumes:
|
||||
- ../eamco_address_checker:/app
|
||||
- ../eamco_address_checker:/app
|
||||
environment:
|
||||
- MODE=LOCAL
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user