-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
49 lines (47 loc) · 1.35 KB
/
compose.yaml
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
---
services:
bot:
build:
args:
- VERSION
context: .
dockerfile: Dockerfile
target: bot
image: kudoser/steam-together-bot:${VERSION:-latest}
restart: unless-stopped
healthcheck:
test: curl -fsSI http://localhost:${BOT_HEALTHCHECK__PORT:?} || exit 1
interval: 10s
timeout: 3s
retries: 3
start_period: 10s
environment:
- BOT_TELEGRAM__TOKEN=${BOT_TELEGRAM__TOKEN}
- BOT_STEAM__APIKEY=${BOT_STEAM__APIKEY}
- BOT_DATABASE__CONNECTIONSTRING=Data Source=/data/database.db
- BOT_HEALTHCHECK__PORT=${BOT_HEALTHCHECK__PORT:?}
- BOT_SCRAPERCLIENT__URL=http://scraper:${SCRAPER_HTTPSERVER__PORT:?}
volumes:
- data:/data
scraper:
build:
args:
- VERSION
context: .
dockerfile: Dockerfile
target: scraper
image: kudoser/steam-together-scraper:${VERSION:-latest}
restart: unless-stopped
depends_on:
- bot
environment:
- SCRAPER_STEAM__APIKEY=${SCRAPER_STEAM__APIKEY}
- SCRAPER_DATABASE__CONNECTIONSTRING=Data Source=/data/database.db
- SCRAPER_SCRAPER__RUNONSTARTUP=true
- SCRAPER_HTTPSERVER__PORT=${SCRAPER_HTTPSERVER__PORT:?}
- SCRAPER_HTTPSERVER__URL=http://+
- BOT_HEALTHCHECK_URL=http://bot:${BOT_HEALTHCHECK__PORT:?}
volumes:
- data:/data
volumes:
data: