-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.yaml
More file actions
53 lines (49 loc) · 1015 Bytes
/
compose.yaml
File metadata and controls
53 lines (49 loc) · 1015 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
45
46
47
48
49
50
51
52
53
version: '3.8'
services:
db:
image: postgres:17
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
networks:
- app-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER}"]
interval: 5s
timeout: 5s
retries: 5
backend:
build:
context: ./Backend
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
DB_ADDRESS: db:5432
DB_NAME: ${DB_NAME}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
depends_on:
db:
condition: service_healthy
networks:
app-network:
aliases:
- backend
frontend:
build:
context: ./Frontend
dockerfile: Dockerfile
environment:
- BOT_TOKEN=${BOT_TOKEN}
- API_URL=http://backend:8080
depends_on:
- backend
networks:
app-network:
aliases:
- frontend
networks:
app-network:
driver: bridge