-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdocker-compose.prod-postgres.yaml
More file actions
32 lines (28 loc) · 1.08 KB
/
docker-compose.prod-postgres.yaml
File metadata and controls
32 lines (28 loc) · 1.08 KB
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
version: '3'
services:
# Start this first and initialize it manually: https://github.com/NamelessMC/Nameless-Link/wiki/Postgres-notes
postgres:
image: docker.io/postgres:18
volumes: ['/opt/nameless-link:/var/lib/postgresql/data']
environment:
POSTGRES_DB: link
POSTGRES_USER: link
POSTGRES_PASSWORD: postgres
restart: always
# If you run namelessmc on the same machine, in docker:
# make sure they're on the same docker network and set BOT_URL to 'http://link'
# If you run namelessmc on the same machine, on the host:
# add ports: ['127.0.0.1:27362:80'] and set BOT_URL to 'http://127.0.0.1:27362'
# If you need the bot to be accessible externally:
# set up a reverse proxy to port 80 of this container and set BOT_URL to 'https://something'
link:
image: docker.io/namelessmc/discord-link:5
environment:
BOT_URL: # see above
DISCORD_TOKEN: # discord bot token
STORAGE_TYPE: postgres
POSTGRES_HOSTNAME: postgres
POSTGRES_DB: link
POSTGRES_USER: link
POSTGRES_PASSWORD: postgres
restart: always