add hedgedoc
This commit is contained in:
15
docs/hedgedoc.md
Normal file
15
docs/hedgedoc.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Required variables
|
||||
These variables are required. Example values included. Some general variables might also be required for this role.
|
||||
|
||||
```
|
||||
ports:
|
||||
hedgedoc:
|
||||
http: 8080
|
||||
|
||||
docker_vhost_domains:
|
||||
hedgedoc:
|
||||
- hedgedoc.domain.tld
|
||||
|
||||
database_passwords:
|
||||
hedgedoc: secret
|
||||
```
|
||||
1
roles/hedgedoc/README.md
Normal file
1
roles/hedgedoc/README.md
Normal file
@@ -0,0 +1 @@
|
||||
Installs hedgedoc in docker
|
||||
18
roles/hedgedoc/meta/main.yml
Normal file
18
roles/hedgedoc/meta/main.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
|
||||
dependencies:
|
||||
- role: container
|
||||
docker_service: hedgedoc
|
||||
docker_image: quay.io/hedgedoc/hedgedoc:latest
|
||||
docker_image_http_port: 3000
|
||||
docker_database: postgres
|
||||
docker_volumes:
|
||||
- hedgedoc_uploads:/hedgedoc/public/uploads
|
||||
docker_env:
|
||||
CMD_DB_URL: postgres://hedgedoc:{{ database_passwords.hedgedoc }}@hedgedoc_db:5432/hedgedoc
|
||||
CMD_DOMAIN: "{{ docker_vhost_domains.hedgedoc[0] }}"
|
||||
CMD_PROTOCOL_USESSL: "true"
|
||||
CMD_ALLOW_ANONYMOUS: "false"
|
||||
CMD_ALLOW_ANONYMOUS_EDITS: "true"
|
||||
CMD_ALLOW_FREEURL: "true"
|
||||
|
||||
Reference in New Issue
Block a user