33 lines
909 B
YAML
33 lines
909 B
YAML
|
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 }}
|
||
|
ports:
|
||
|
- {{ ports['hedgedoc'] }}:3000
|
||
|
volumes:
|
||
|
- {{ volumes['hedgedoc_configdir'] }}:/config
|
||
|
|
||
|
mysql:
|
||
|
container_name: hedgedoc-mysql
|
||
|
image: 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
|
||
|
|
||
|
|