Updated dockerfiles working
This commit is contained in:
1
.editorconfig
Normal file
1
.editorconfig
Normal file
@@ -0,0 +1 @@
|
||||
root = true
|
||||
52
docker-compose.build.yml
Normal file
52
docker-compose.build.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
version: '3.8'
|
||||
|
||||
|
||||
name: eamco
|
||||
services:
|
||||
|
||||
frontend_office_prod:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_frontend
|
||||
dockerfile: Dockerfile.prod
|
||||
ports:
|
||||
- '9511:80'
|
||||
|
||||
backend_office_prod:
|
||||
restart: always
|
||||
build:
|
||||
context: ../eamco_office_api
|
||||
dockerfile: Dockerfile.prod
|
||||
ports:
|
||||
- '9510:4056'
|
||||
command: 'python3 app.py --host 0.0.0.0'
|
||||
|
||||
|
||||
print_service_prod:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_print_service
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- '8000:9512'
|
||||
command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8000'
|
||||
|
||||
|
||||
money_service_prod:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_money_service
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- '9513:8001'
|
||||
command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8001'
|
||||
|
||||
|
||||
frontend_driver_prod:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_driver_frontend
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- '9000:9000'
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
version: '3.8'
|
||||
|
||||
volumes:
|
||||
eamco_cache:
|
||||
|
||||
name: eamco
|
||||
services:
|
||||
|
||||
backend_office:
|
||||
container_name: eamco-backend-api-dev
|
||||
backend_office_dev:
|
||||
restart: always
|
||||
build:
|
||||
context: ../eamco_office_api
|
||||
@@ -15,13 +12,11 @@ services:
|
||||
volumes:
|
||||
- ../eamco_office_api:/app
|
||||
ports:
|
||||
- '4056:4056'
|
||||
- '9510:4056'
|
||||
command: 'python3 app.py --host 0.0.0.0'
|
||||
|
||||
|
||||
frontend:
|
||||
container_name: eamco-frontend-dev
|
||||
image: eamco/backend-frontend
|
||||
frontend_office_dev:
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_frontend
|
||||
@@ -29,61 +24,57 @@ services:
|
||||
volumes:
|
||||
- ../eamco_frontend:/app
|
||||
ports:
|
||||
- '5173:5173'
|
||||
- '9511:5173'
|
||||
command: 'vite dev --host --port 5173'
|
||||
|
||||
|
||||
frontend_driver:
|
||||
container_name: eamco-frontend-driver-dev
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_driver_frontend
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- ../eamco_driver_frontend:/app
|
||||
ports:
|
||||
- '9000:9000'
|
||||
command: 'quasar dev'
|
||||
# frontend_driver_dev:
|
||||
# restart: on-failure
|
||||
# build:
|
||||
# context: ../eamco_driver_frontend
|
||||
# dockerfile: Dockerfile
|
||||
# volumes:
|
||||
# - ../eamco_driver_frontend:/app
|
||||
# ports:
|
||||
# - '9000:9000'
|
||||
# command: 'quasar dev'
|
||||
|
||||
|
||||
print_service:
|
||||
container_name: eamco-printer-dev
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_print_service
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- ../eamco_print_service:/app
|
||||
- ../eamco_print_service/tickets:/app/tickets
|
||||
ports:
|
||||
- '8000:8000'
|
||||
command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8000'
|
||||
# print_service_dev:
|
||||
# restart: on-failure
|
||||
# build:
|
||||
# context: ../eamco_print_service
|
||||
# dockerfile: Dockerfile
|
||||
# volumes:
|
||||
# - ../eamco_print_service:/app
|
||||
# - ../eamco_print_service/tickets:/app/tickets
|
||||
# ports:
|
||||
# - '9512:8000'
|
||||
# command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8000'
|
||||
|
||||
|
||||
money_service:
|
||||
container_name: eamco-money-dev
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_money_service
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- ../eamco_money_service:/app
|
||||
ports:
|
||||
- '8001:8000'
|
||||
command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8000'
|
||||
# money_service_dev:
|
||||
# restart: on-failure
|
||||
# build:
|
||||
# context: ../eamco_money_service
|
||||
# dockerfile: Dockerfile
|
||||
# volumes:
|
||||
# - ../eamco_money_service:/app
|
||||
# ports:
|
||||
# - '9513:8000'
|
||||
# command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8001'
|
||||
|
||||
|
||||
auto:
|
||||
container_name: eamco-auto-dev
|
||||
restart: on-failure
|
||||
build:
|
||||
context: ../eamco_auto_api
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- ../eamco_auto_api:/app
|
||||
ports:
|
||||
- '8002:8000'
|
||||
command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8000'
|
||||
# auto_dev:
|
||||
# restart: on-failure
|
||||
# build:
|
||||
# context: ../eamco_auto_api
|
||||
# dockerfile: Dockerfile
|
||||
# volumes:
|
||||
# - ../eamco_auto_api:/app
|
||||
# ports:
|
||||
# - '9514:8002'
|
||||
# command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8002'
|
||||
|
||||
|
||||
|
||||
|
||||
44
docker-compose.prod.yml
Normal file
44
docker-compose.prod.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
version: '3.8'
|
||||
|
||||
|
||||
name: eamco
|
||||
services:
|
||||
|
||||
frontend_office_prod:
|
||||
restart: on-failure
|
||||
image: anekdotin/eamco-frontend_office_prod:latest
|
||||
ports:
|
||||
- '9511:80'
|
||||
|
||||
|
||||
backend_office_prod:
|
||||
restart: always
|
||||
image: anekdotin/eamco-backend_office_prod:latest
|
||||
ports:
|
||||
- '9510:4056'
|
||||
command: 'python3 app.py --host 0.0.0.0'
|
||||
|
||||
|
||||
print_service_prod:
|
||||
restart: on-failure
|
||||
image: anekdotin/eamco-print_service_prod:latest
|
||||
ports:
|
||||
- '9512:8000'
|
||||
command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8000'
|
||||
|
||||
|
||||
money_service_prod:
|
||||
restart: on-failure
|
||||
image: anekdotin/eamco-money_service_prod:latest
|
||||
ports:
|
||||
- '9513:8001'
|
||||
command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8001'
|
||||
|
||||
|
||||
frontend_driver_prod:
|
||||
restart: on-failure
|
||||
image: anekdotin/eamco-frontend_driver_prod:latest
|
||||
ports:
|
||||
- '9000:9000'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user