lavkach3
1version: "3.12"
2services:
3db:
4image: postgres:15
5container_name: db_app
6command: -p 5433
7expose:
8- 5433
9env_file:
10- .env-docker
11ports:
12- 5433:5433
13
14redis:
15image: redis:7
16container_name: redis_app
17command: --port 5371
18expose:
19- 5371
20env_file:
21- .env-docker
22ports:
23- 5371:5371
24
25base-app:
26build:
27context: .
28env_file:
29- .env-docker
30container_name: base_app
31command: gunicorn core.core_apps.base.base_server:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind=0.0.0.0:80
32ports:
33- 8888:80
34depends_on:
35- db
36- redis
37bus-app:
38build:
39context: .
40env_file:
41- .env-docker
42container_name: bus_app
43command: gunicorn core.core_apps.bus.bus_server:app --workers 1 --worker-class uvicorn.workers.UvicornWorker --bind=0.0.0.0:80
44ports:
45- 8099:80
46depends_on:
47- base-app
48- db
49- redis
50
51jobs-app:
52build:
53context: .
54env_file:
55- .env-docker
56container_name: jobs_app
57command: taskiq worker core.helpers.broker.tkq:list_brocker --fs-discover --workers 2 --log-level DEBUG
58depends_on:
59- base-app
60- db
61- redis
62
63
64basic-app:
65build:
66context: .
67env_file:
68- .env-docker
69container_name: basic_app
70command: gunicorn app.basic.basic_server:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind=0.0.0.0:80
71ports:
72- 8001:80
73depends_on:
74- db
75- redis
76- bus-app
77
78inventory-app:
79build:
80context: .
81env_file:
82- .env-docker
83container_name: inventory_app
84command: gunicorn app.inventory.inventory_server:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind=0.0.0.0:80
85ports:
86- 8002:80
87depends_on:
88- basic-app
89- db
90- redis
91- bus-app
92
93front-app:
94build:
95context: .
96env_file:
97- .env-docker
98container_name: front_app
99command: gunicorn app.front.front_server:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind=0.0.0.0:80
100ports:
101- 80:80
102depends_on:
103- basic-app
104- inventory-app
105- db
106- redis
107- bus-app
108- base-app
109
110