Original Setup
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:15-alpine
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_USER: ${PSQL_NAME}
|
||||
POSTGRES_PASSWORD: ${PSQL_PASS}
|
||||
POSTGRES_DB: ${PSQL_DB_NAME}
|
||||
POSTGRES_INITDB_ARGS: --encoding=UTF8 --lc-collate=C --lc-ctype=C
|
||||
PGUSER: ${PSQL_NAME}
|
||||
PGDATABASE: ${PSQL_DB_NAME}
|
||||
volumes:
|
||||
- synapse-pg-data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- synapse-net
|
||||
- postgre-general
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "50m"
|
||||
max-file: "3"
|
||||
|
||||
synapse-foxgirls:
|
||||
image: matrixdotorg/synapse:latest
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
SYNAPSE_SERVER_NAME: foxgirls.date
|
||||
SYNAPSE_REPORT_STATS: "yes"
|
||||
SYNAPSE_DATABASE: "postgres://${PSQL_NAME}:${PSQL_PASS}@postgres/${PSQL_DB_NAME}"
|
||||
volumes:
|
||||
- ~/synapse-data2:/data # Host folder with config, media, logs
|
||||
depends_on:
|
||||
- postgres
|
||||
networks:
|
||||
- synapse-net
|
||||
- reverse_proxy_default
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "50m"
|
||||
max-file: "3"
|
||||
|
||||
volumes:
|
||||
synapse-pg-data:
|
||||
|
||||
networks:
|
||||
synapse-net:
|
||||
driver: bridge
|
||||
reverse_proxy_default:
|
||||
external: true
|
||||
postgre-general:
|
||||
external: true
|
||||
Reference in New Issue
Block a user