41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
version: "3.7"
|
|
|
|
services:
|
|
mautrix-discord:
|
|
container_name: mautrix-discord
|
|
image: dock.mau.dev/mautrix/discord:latest
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./data:/data
|
|
|
|
ports:
|
|
- "29334:29334"
|
|
|
|
networks:
|
|
synapse_default:
|
|
traefik_portal:
|
|
|
|
mautrix-discord-db:
|
|
image: docker.io/postgres:15-alpine
|
|
container_name: mautrix-discord-db
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
- POSTGRES_DB=${POSTGRES_DB}
|
|
# ensure the database gets created correctly
|
|
# https://github.com/matrix-org/synapse/blob/master/docs/postgres.md#set-up-database
|
|
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|
|
volumes:
|
|
# You may either store all the files in a local folder
|
|
- ./db:/var/lib/postgresql/data
|
|
ports:
|
|
- 5432:5432
|
|
networks:
|
|
synapse_default:
|
|
|
|
networks:
|
|
synapse_default:
|
|
traefik_portal:
|
|
external: true
|