vps/roles/hedgedoc/templates/docker-compose.yaml

34 lines
970 B
YAML
Raw Normal View History

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 }}
- CMD_PROTOCOL_USESSL=true
2024-02-17 19:01:04 +01:00
ports:
- 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
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