-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
61 lines (58 loc) · 1.15 KB
/
compose.yml
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
version: '3'
services:
mybot:
hostname: mybot
init: true
image: airopi/mybot:stable
build:
dockerfile: ./Dockerfile
target: production
develop:
watch:
- action: sync
path: ./src
target: /app
- action: rebuild
path: ./requirements.txt
env_file:
- .env
tty: true
restart: always
depends_on:
database:
condition: service_healthy
volumes:
- ./config.toml:/app/config.toml
expose:
- 8080
ports:
- 8080:8080
database:
hostname: database
image: timescale/timescaledb:latest-pg14
env_file:
- .env
restart: always
volumes:
- ./data/database:/var/lib/postgresql/data
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"
]
interval: 5s
timeout: 5s
retries: 5
grafana:
image: grafana/grafana:latest
env_file:
- .env
restart: always
volumes:
- ./data/grafana:/var/lib/grafana
ports:
- "3000:3000"
depends_on:
database:
condition: service_healthy