-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
40 lines (40 loc) · 919 Bytes
/
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
version: "3.8"
services:
postgres-bot:
image: "postgres:13"
ports:
- "5432:5432"
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
- POSTGRES_DB=${DB_NAME}
volumes:
- "pgdata_bot:/var/lib/postgresql/data"
command:
[
"postgres",
"-c",
"log_statement=mod",
"-c",
"log_min_error_statement=ERROR",
]
uni-bot:
build: .
image: "ghcr.io/reecedonovan/uni-bot:latest"
environment:
DISCORD_TOKEN: ${DISCORD_TOKEN}
DISCORD_APP: ${DISCORD_APP}
DISCORD_GUILD: ${DISCORD_GUILD}
CANVAS_DOMAIN: ${CANVAS_DOMAIN}
CANVAS_TERM: ${CANVAS_TERM}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
DB_NAME: ${DB_NAME}
volumes:
- ./:/go/src/app
depends_on:
- postgres-bot
volumes:
pgdata_bot: