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,81 +1,83 @@
|
||||
|
||||
|
||||
name: eamco
|
||||
services:
|
||||
|
||||
backend_office_dev:
|
||||
restart: always
|
||||
build:
|
||||
context: ../eamco_office_api
|
||||
dockerfile: Dockerfile.dev
|
||||
context: ../eamco_office_api
|
||||
dockerfile: Dockerfile.dev
|
||||
volumes:
|
||||
- ../eamco_office_api:/app
|
||||
- ../eamco_office_api:/app
|
||||
ports:
|
||||
- '9510:4056'
|
||||
command: 'python3 app.py --host 0.0.0.0'
|
||||
|
||||
|
||||
frontend_office_dev:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_office_frontend
|
||||
dockerfile: Dockerfile.dev
|
||||
volumes:
|
||||
- ../eamco_office_frontend:/app
|
||||
ports:
|
||||
- '9511:5173'
|
||||
command: 'vite dev --host --port 5173'
|
||||
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_office_frontend
|
||||
dockerfile: Dockerfile.dev
|
||||
volumes:
|
||||
- ../eamco_office_frontend:/app
|
||||
ports:
|
||||
- '9511:5173'
|
||||
command: 'vite dev --host --port 5173'
|
||||
|
||||
money_dev:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_money_api
|
||||
dockerfile: Dockerfile.dev
|
||||
context: ../eamco_money_api
|
||||
dockerfile: Dockerfile.dev
|
||||
volumes:
|
||||
- ../eamco_money_api:/app
|
||||
- ../eamco_money_api:/app
|
||||
ports:
|
||||
- '9513:8000'
|
||||
command: 'uvicorn main:app --reload --host 0.0.0.0 --port 8000'
|
||||
|
||||
|
||||
auto_dev:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_auto_api
|
||||
dockerfile: Dockerfile.dev
|
||||
context: ../eamco_auto_api
|
||||
dockerfile: Dockerfile.dev
|
||||
volumes:
|
||||
- ../eamco_auto_api:/app
|
||||
- ../eamco_auto_api:/app
|
||||
ports:
|
||||
- '9514:8000'
|
||||
command: 'uvicorn main:app --reload --host 0.0.0.0 --port 8000'
|
||||
|
||||
|
||||
service_dev:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_service
|
||||
dockerfile: Dockerfile.dev
|
||||
volumes:
|
||||
- ../eamco_service:/app
|
||||
ports:
|
||||
- '9515:8000'
|
||||
command: 'uvicorn main:app --reload --host 0.0.0.0 --port 8000'
|
||||
|
||||
playground_dev:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_playground
|
||||
dockerfile: Dockerfile.dev
|
||||
context: ../eamco_playground
|
||||
dockerfile: Dockerfile.dev
|
||||
volumes:
|
||||
- ../eamco_playground:/app
|
||||
- ../eamco_playground:/app
|
||||
ports:
|
||||
- '9520:8000'
|
||||
command: 'uvicorn main:app --reload --host 0.0.0.0 --port 8000'
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
authorize_dev:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_authorize
|
||||
dockerfile: Dockerfile.dev
|
||||
context: ../eamco_authorize
|
||||
dockerfile: Dockerfile.dev
|
||||
volumes:
|
||||
- ../eamco_authorize:/app
|
||||
- ../eamco_authorize:/app
|
||||
ports:
|
||||
- '9516:8000'
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- MODE=DEVELOPMENT
|
||||
- AUTHORIZE_API_LOGIN_ID_DEV=${AUTHORIZE_API_LOGIN_ID_DEV}
|
||||
@@ -86,26 +88,24 @@ services:
|
||||
- POSTGRES_DBNAME=eamco
|
||||
command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8000'
|
||||
|
||||
|
||||
voipms_dev:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_voipms
|
||||
dockerfile: Dockerfile.dev
|
||||
context: ../eamco_voipms
|
||||
dockerfile: Dockerfile.dev
|
||||
volumes:
|
||||
- ../eamco_voipms:/app
|
||||
- ../eamco_voipms:/app
|
||||
ports:
|
||||
- '9517:8000'
|
||||
command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8000'
|
||||
|
||||
|
||||
address_checker_dev:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_address_checker
|
||||
dockerfile: Dockerfile.dev
|
||||
context: ../eamco_address_checker
|
||||
dockerfile: Dockerfile.dev
|
||||
volumes:
|
||||
- ../eamco_address_checker:/app
|
||||
- ../eamco_address_checker:/app
|
||||
environment:
|
||||
- MODE=dev
|
||||
ports:
|
||||
|
||||
Reference in New Issue
Block a user