-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.build.yml
43 lines (42 loc) · 1.02 KB
/
docker-compose.build.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
services:
db:
image: postgres:latest
container_name: byod-db
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U byod"]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_USER: byod
POSTGRES_PASSWORD: password
POSTGRES_DB: byod
volumes:
- ./data:/var/lib/postgresql/data
#ports:
#- "5432:5432"
byod-bot:
image: byod-bot
build:
context: .
dockerfile: Dockerfile
container_name: byod-bot
restart: unless-stopped
depends_on:
db:
condition: service_healthy
#if you are using a reverse proxy NOT under docker, you may have to uncomment this
#ports:
# - "9292:9292"
environment:
REVERSE_PROXY: "caddy"
GUILD_ID: DISCORD_SERVER_ID
DATABASE: "postgres"
DISCORD_TOKEN: "YOUR_DISCORD_BOT_TOKEN"
SERVER_IP: "YOUR_SERVERS_IP"
DB_HOST: "db"
DB_PORT: "5432"
DB_USER: "byod"
DB_PASSWORD: "password"
DB_DATABASE: "byod"