2020-05-21 07:02:28 -05:00
|
|
|
version: "3.4"
|
|
|
|
services:
|
2021-12-17 08:03:42 -06:00
|
|
|
postgres:
|
|
|
|
hostname: postgres
|
|
|
|
image: postgres:14
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ./postgres/create_db.sh:/docker-entrypoint-initdb.d/20-create_db.sh
|
|
|
|
# To persist your PostgreSQL databases outside of the Docker image,
|
|
|
|
# to prevent data loss, modify the following ./path_to path:
|
|
|
|
- ./path_to/postgresql:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: itsasecret
|
|
|
|
POSTGRES_USER: dendrite
|
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
|
2020-05-21 07:02:28 -05:00
|
|
|
monolith:
|
|
|
|
hostname: monolith
|
2020-10-20 05:34:22 -05:00
|
|
|
image: matrixdotorg/dendrite-monolith:latest
|
2020-05-21 07:02:28 -05:00
|
|
|
command: [
|
|
|
|
"--tls-cert=server.crt",
|
|
|
|
"--tls-key=server.key"
|
|
|
|
]
|
2020-10-27 08:58:58 -05:00
|
|
|
ports:
|
|
|
|
- 8008:8008
|
|
|
|
- 8448:8448
|
2020-05-21 07:02:28 -05:00
|
|
|
volumes:
|
|
|
|
- ./config:/etc/dendrite
|
2021-03-03 05:20:40 -06:00
|
|
|
- ./media:/var/dendrite/media
|
2021-12-17 08:03:42 -06:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
2020-05-21 07:02:28 -05:00
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
|
|
|
|
networks:
|
|
|
|
internal:
|
|
|
|
attachable: true
|