-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
36 lines (34 loc) · 1.2 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
services:
bot:
build:
context: .
dockerfile: conf/bot/Dockerfile
restart: unless-stopped
environment:
SHPAGA_POSTGRES_DSN: "host=db user=shpaga password=shpaga dbname=shpaga port=5432 sslmode=disable"
SHPAGA_TELEGRAM_TOKEN: "${SHPAGA_TELEGRAM_TOKEN}"
SHPAGA_CTFTIME_CLIENT_ID: "${SHPAGA_CTFTIME_CLIENT_ID}"
SHPAGA_CTFTIME_REDIRECT_URL: "${SHPAGA_CTFTIME_REDIRECT_URL}"
SHPAGA_DEBUG: "${SHPAGA_DEBUG}"
api:
build:
context: .
dockerfile: conf/api/Dockerfile
restart: unless-stopped
environment:
SHPAGA_POSTGRES_DSN: "host=db user=shpaga password=shpaga dbname=shpaga port=5432 sslmode=disable"
SHPAGA_TELEGRAM_TOKEN: "${SHPAGA_TELEGRAM_TOKEN}"
SHPAGA_CTFTIME_CLIENT_ID: "${SHPAGA_CTFTIME_CLIENT_ID}"
SHPAGA_CTFTIME_CLIENT_SECRET: "${SHPAGA_CTFTIME_CLIENT_SECRET}"
SHPAGA_CTFTIME_REDIRECT_URL: "${SHPAGA_CTFTIME_REDIRECT_URL}"
SHPAGA_DEBUG: "${SHPAGA_DEBUG}"
ports:
- "${EXTERNAL_API_PORT:-80}:8080"
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: shpaga
POSTGRES_PASSWORD: shpaga
POSTGRES_DB: shpaga
volumes:
- ./vol/db/data:/var/lib/postgresql/data