dendrite/build/docker/docker-compose.monolith.yml

45 lines
1 KiB
YAML
Raw Normal View History

version: "3.4"
services:
2021-12-17 14:03:42 +00: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
2021-12-17 14:20:34 +00:00
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dendrite"]
interval: 5s
timeout: 5s
retries: 5
2021-12-17 14:03:42 +00:00
networks:
- internal
monolith:
hostname: monolith
image: matrixdotorg/dendrite-monolith:latest
command: [
"--tls-cert=server.crt",
"--tls-key=server.key"
]
2020-10-27 13:58:58 +00:00
ports:
- 8008:8008
- 8448:8448
volumes:
- ./config:/etc/dendrite
- ./media:/var/dendrite/media
2021-12-17 14:03:42 +00:00
depends_on:
- postgres
networks:
- internal
2021-12-17 14:20:34 +00:00
restart: unless-stopped
networks:
internal:
attachable: true