services: hedgedoc: container_name: hedgedoc image: lscr.io/linuxserver/hedgedoc:latest restart: always environment: - PUID={{ users['hedgedoc'] }} - PGID={{ users['hedgedoc'] }} - TZ={{ timezone }} - DB_HOST=hedgedoc-mysql - DB_PORT=3306 - DB_USER=root - DB_PASS={{ hedgedoc_secrets['mysql_root_password'] }} - DB_NAME=hedgedoc - CMD_DOMAIN=hedgedoc.{{ domain }} - CMD_PROTOCOL_USESSL=true ports: - 127.0.0.1:{{ ports['hedgedoc'] }}:3000 volumes: - {{ volumes['hedgedoc_configdir'] }}:/config mysql: container_name: hedgedoc-mysql image: docker.io/library/mysql:latest restart: always user: {{ users['hedgedoc_mysql'] }}:{{ users['hedgedoc_mysql'] }} environment: MYSQL_DATABASE: hedgedoc MYSQL_ROOT_PASSWORD: "{{ hedgedoc_secrets['mysql_root_password'] }}" volumes: - {{ volumes['hedgedoc_mysql_datadir'] }}:/var/lib/mysql