-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·89 lines (84 loc) · 1.87 KB
/
docker-compose.yml
File metadata and controls
executable file
·89 lines (84 loc) · 1.87 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: "3.8"
services:
rota-core:
build:
context: ./core
dockerfile: Dockerfile
container_name: rota-core
restart: unless-stopped
ports:
- "8000:8000" # Proxy port
- "8001:8001" # API port
environment:
- PROXY_PORT=8000
- API_PORT=8001
- LOG_LEVEL=info
- DB_HOST=timescaledb
- DB_PORT=5432
- DB_USER=rota
- DB_PASSWORD=rota_password
- DB_NAME=rota
- DB_SSLMODE=disable
- ROTA_ADMIN_USER=admin
- ROTA_ADMIN_PASSWORD=admin
networks:
- rota-network
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:8001/health",
]
interval: 30s
timeout: 3s
start_period: 5s
retries: 3
depends_on:
timescaledb:
condition: service_healthy
rota-dashboard:
build:
context: ./dashboard
dockerfile: Dockerfile
container_name: rota-dashboard
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8001
networks:
- rota-network
depends_on:
rota-core:
condition: service_healthy
timescaledb:
image: timescale/timescaledb:2.22.1-pg17
container_name: rota-timescaledb
restart: unless-stopped
ports:
- "5432:5432"
environment:
- POSTGRES_USER=rota
- POSTGRES_PASSWORD=rota_password
- POSTGRES_DB=rota
- TIMESCALEDB_TELEMETRY=off
volumes:
- timescaledb-data:/var/lib/postgresql/data
networks:
- rota-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U rota -d rota"]
interval: 10s
timeout: 5s
start_period: 10s
retries: 5
volumes:
timescaledb-data:
driver: local
networks:
rota-network:
driver: bridge