2021-09-02 18:01:03 +02:00

38 lines
899 B
YAML

version: "3.8"
services:
hedgedoc_db:
image: ghcr.io/linuxserver/mariadb:${tag_db}
container_name: hedgedoc_db
restart: always
volumes:
- ${volume_db}:/config
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- PGID=${PGID}
- PUID=${PUID}
- TZ=${TZ}
hedgedoc:
image: ghcr.io/linuxserver/hedgedoc:${tag_hedgedoc}
container_name: hedgedoc
restart: ${rst_mode}
depends_on:
- hedgedoc_db
volumes:
- ${volume_hedgedoc}:/config
environment:
- DB_HOST=hedgedoc_db
- DB_USER=${MYSQL_USER}
- DB_PASS=${MYSQL_PASSWORD}
- DB_NAME=${MYSQL_DATABASE}
- DB_PORT=3306
- PGID=${PGID}
- PUID=${PUID}
- TZ=${TZ}
ports:
- "${port_hedgedoc}:3000"