-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (52 loc) · 1.19 KB
/
docker-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
---
version: '3.7'
services:
iotabot:
privileged: true
build:
context: .
dockerfile: Dockerfile
environment:
- COMMAND_PREFIX=${COMMAND_PREFIX}
- DB=${DB}
- DISCORD_TOKEN=${DISCORD_TOKEN}
- GBF_BOT_SERVER_PORT=${GBF_BOT_SERVER_PORT}
- HTTP_SERVER_PORT=${HTTP_SERVER_PORT}
- LOGIN=${LOGIN}
- OSU_TOKEN=${OSU_TOKEN}
- PASSW=${PASSW}
labels:
"autoheal": "true"
ports:
- "8090:8090"
- "80:80"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8090/status"]
interval: 60s
timeout: 3s
retries: 10
volumes:
- '/run/postgresql:/run/postgresql'
container_name: iotabot
restart: always
pp:
build:
context: ./osu_tools
dockerfile: Dockerfile
ports:
- "8091:8080"
labels:
"autoheal": "true"
container_name: osu_tools_wrapper
restart: always
autoheal:
restart: always
privileged: true
image: willfarrell/autoheal
container_name: autoheal
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
environment:
- AUTOHEAL_INTERVAL=120
- CURL_TIMEOUT=30
- AUTOHEAL_START_PERIOD=120