-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
47 lines (46 loc) · 1.17 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
version: '3'
services:
postgres:
restart: unless-stopped
image: postgres:latest
environment:
POSTGRES_USER: corlink
POSTGRES_PASSWORD: corlink
POSTGRES_DB: corlink
volumes:
- ./postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U corlink"]
interval: 10s
timeout: 5s
retries: 5
corlink-server:
restart: unless-stopped
image: ghcr.io/ruby-network/corlink-server:latest
depends_on:
postgres:
condition: service_healthy
ports:
# Do not edit port 8080 (if you don't want it exposed, remove ME!)
- "8080:8080"
environment:
ADMIN_KEY: "yourkey"
DB_HOST: "postgres"
DB_USER: "corlink"
DB_PASSWORD: "corlink"
DB_NAME: "corlink"
DB_PORT: "5432"
corlink-bot:
restart: unless-stopped
image: ghcr.io/ruby-network/corlink-bot:latest
container_name: corlink-bot
environment:
DISCORD_TOKEN: "yourtoken"
GUILD_ID: "yourguildid"
LICENSING_SERVER_URL: corlink-server:8080
LICENSING_SERVER_KEY: "yourkey"
OWNER_ID: "yourownerid"
networks:
default:
external:
name: corlink