2024-02-17 19:01:04 +01:00
|
|
|
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 }}
|
2024-02-17 19:37:54 +01:00
|
|
|
- CMD_PROTOCOL_USESSL=true
|
2024-02-17 19:01:04 +01:00
|
|
|
ports:
|
2024-02-18 22:19:55 +01:00
|
|
|
- 127.0.0.1:{{ ports['hedgedoc'] }}:3000
|
2024-02-17 19:01:04 +01:00
|
|
|
volumes:
|
|
|
|
- {{ volumes['hedgedoc_configdir'] }}:/config
|
|
|
|
|
|
|
|
mysql:
|
|
|
|
container_name: hedgedoc-mysql
|
2024-03-02 12:13:30 +01:00
|
|
|
image: docker.io/library/mysql:latest
|
2024-02-17 19:01:04 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
|