hedgedoc: handle restart via systemd service

This commit is contained in:
Markus 2022-09-03 12:26:48 +02:00
parent b86945f714
commit fdf91000d5

View File

@ -8,7 +8,6 @@ services:
- POSTGRES_DB={{ hedgedoc_dbname }} - POSTGRES_DB={{ hedgedoc_dbname }}
volumes: volumes:
- ./database:/var/lib/postgresql/data - ./database:/var/lib/postgresql/data
restart: unless-stopped
app: app:
image: quay.io/hedgedoc/hedgedoc:1.9.3 image: quay.io/hedgedoc/hedgedoc:1.9.3
environment: environment:
@ -23,7 +22,7 @@ services:
- CMD_HSTS_INCLUDE_SUBDOMAINS=true - CMD_HSTS_INCLUDE_SUBDOMAINS=true
- CMD_HSTS_PRELOAD=true - CMD_HSTS_PRELOAD=true
- CMD_CSP_ENABLE=true - CMD_CSP_ENABLE=true
- CMD_DB_URL=postgres://{{ hedgedoc_dbuser }}:{{ hedgedoc_dbpass }}@database:5432/{{ hedgedoc_dbname }} - CMD_DB_URL=postgres://{{ hedgedoc_dbuser }}:{{ hedgedoc_dbpass }}@database/{{ hedgedoc_dbname }}
- CMD_LDAP_URL={{ ldap_uri }} - CMD_LDAP_URL={{ ldap_uri }}
- CMD_LDAP_BINDDN={{ ldap_binddn }} - CMD_LDAP_BINDDN={{ ldap_binddn }}
- CMD_LDAP_BINDCREDENTIALS={{ ldap_bindpw }} - CMD_LDAP_BINDCREDENTIALS={{ ldap_bindpw }}
@ -40,6 +39,5 @@ services:
- ./uploads:/hedgedoc/public/uploads - ./uploads:/hedgedoc/public/uploads
ports: ports:
- "127.0.0.1:3000:3000" - "127.0.0.1:3000:3000"
restart: unless-stopped
depends_on: depends_on:
- database - database