forked from chessnok/easydocs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
44 lines (42 loc) · 920 Bytes
/
docker-compose.yaml
File metadata and controls
44 lines (42 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: "3.9"
services:
db:
image: postgres:16.4
restart: always
environment:
POSTGRES_USER: easydocs
POSTGRES_PASSWORD: easydocs
POSTGRES_DB: easydocs
POSTGRES_PORT: 5432
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d easydocs -U easydocs" ]
interval: 5s
timeout: 60s
retries: 20
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "5432:5432"
backend:
build: ./backend
command: python app.py
depends_on:
db:
condition: service_healthy
volumes:
- ./backend:/code/
environment:
DB_URL: postgresql://easydocs:easydocs@db:5432/easydocs
BACKEND_URL: http://backend:8080
ports:
- "8080:8080"
tg_bot:
build: ./tg_bot
command: python main.py
depends_on:
db:
condition: service_healthy
volumes:
- ./tg_bot:/code/
volumes:
db_data: