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'
|
version: '3.8'
|
||||||
|
|
||||||
volumes:
|
|
||||||
eamco_cache:
|
|
||||||
|
|
||||||
name: eamco
|
name: eamco
|
||||||
services:
|
services:
|
||||||
|
|
||||||
backend_office:
|
backend_office_dev:
|
||||||
container_name: eamco-backend-api-dev
|
|
||||||
restart: always
|
restart: always
|
||||||
build:
|
build:
|
||||||
context: ../eamco_office_api
|
context: ../eamco_office_api
|
||||||
@@ -15,13 +12,11 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ../eamco_office_api:/app
|
- ../eamco_office_api:/app
|
||||||
ports:
|
ports:
|
||||||
- '4056:4056'
|
- '9510:4056'
|
||||||
command: 'python3 app.py --host 0.0.0.0'
|
command: 'python3 app.py --host 0.0.0.0'
|
||||||
|
|
||||||
|
|
||||||
frontend:
|
frontend_office_dev:
|
||||||
container_name: eamco-frontend-dev
|
|
||||||
image: eamco/backend-frontend
|
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
build:
|
build:
|
||||||
context: ../eamco_frontend
|
context: ../eamco_frontend
|
||||||
@@ -29,61 +24,57 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ../eamco_frontend:/app
|
- ../eamco_frontend:/app
|
||||||
ports:
|
ports:
|
||||||
- '5173:5173'
|
- '9511:5173'
|
||||||
command: 'vite dev --host --port 5173'
|
command: 'vite dev --host --port 5173'
|
||||||
|
|
||||||
|
|
||||||
frontend_driver:
|
# frontend_driver_dev:
|
||||||
container_name: eamco-frontend-driver-dev
|
# restart: on-failure
|
||||||
restart: on-failure
|
# build:
|
||||||
build:
|
# context: ../eamco_driver_frontend
|
||||||
context: ../eamco_driver_frontend
|
# dockerfile: Dockerfile
|
||||||
dockerfile: Dockerfile
|
# volumes:
|
||||||
volumes:
|
# - ../eamco_driver_frontend:/app
|
||||||
- ../eamco_driver_frontend:/app
|
# ports:
|
||||||
ports:
|
# - '9000:9000'
|
||||||
- '9000:9000'
|
# command: 'quasar dev'
|
||||||
command: 'quasar dev'
|
|
||||||
|
|
||||||
|
|
||||||
print_service:
|
# print_service_dev:
|
||||||
container_name: eamco-printer-dev
|
# restart: on-failure
|
||||||
restart: on-failure
|
# build:
|
||||||
build:
|
# context: ../eamco_print_service
|
||||||
context: ../eamco_print_service
|
# dockerfile: Dockerfile
|
||||||
dockerfile: Dockerfile
|
# volumes:
|
||||||
volumes:
|
# - ../eamco_print_service:/app
|
||||||
- ../eamco_print_service:/app
|
# - ../eamco_print_service/tickets:/app/tickets
|
||||||
- ../eamco_print_service/tickets:/app/tickets
|
# ports:
|
||||||
ports:
|
# - '9512:8000'
|
||||||
- '8000:8000'
|
# command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8000'
|
||||||
command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8000'
|
|
||||||
|
|
||||||
|
|
||||||
money_service:
|
# money_service_dev:
|
||||||
container_name: eamco-money-dev
|
# restart: on-failure
|
||||||
restart: on-failure
|
# build:
|
||||||
build:
|
# context: ../eamco_money_service
|
||||||
context: ../eamco_money_service
|
# dockerfile: Dockerfile
|
||||||
dockerfile: Dockerfile
|
# volumes:
|
||||||
volumes:
|
# - ../eamco_money_service:/app
|
||||||
- ../eamco_money_service:/app
|
# ports:
|
||||||
ports:
|
# - '9513:8000'
|
||||||
- '8001:8000'
|
# command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8001'
|
||||||
command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8000'
|
|
||||||
|
|
||||||
|
|
||||||
auto:
|
# auto_dev:
|
||||||
container_name: eamco-auto-dev
|
# restart: on-failure
|
||||||
restart: on-failure
|
# build:
|
||||||
build:
|
# context: ../eamco_auto_api
|
||||||
context: ../eamco_auto_api
|
# dockerfile: Dockerfile
|
||||||
dockerfile: Dockerfile
|
# volumes:
|
||||||
volumes:
|
# - ../eamco_auto_api:/app
|
||||||
- ../eamco_auto_api:/app
|
# ports:
|
||||||
ports:
|
# - '9514:8002'
|
||||||
- '8002:8000'
|
# command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8002'
|
||||||
command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8000'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
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