version: '3' services: database: image: postgres:13.4-alpine environment: - POSTGRES_USER=hedgedoc - POSTGRES_PASSWORD=hedgedoc - POSTGRES_DB=hedgedoc volumes: - ./database:/var/lib/postgresql/data networks: cttue_web_services: restart: always app: image: quay.io/hedgedoc/hedgedoc:1.9.4 environment: - CMD_DB_URL=postgres://hedgedoc:hedgedoc@database:5432/hedgedoc - CMD_DOMAIN=pad.cttue.de - CMD_PROTOCOL_USESSL=true - CMD_ALLOW_PDF_EXPORT=true - CMD_ALLOW_FREEURL=true - CMD_SESSION_SECRET=9yonH247cLTXEqDv9JTGEygBCxk7fHXfYY2ckkhY7n0KPEuzRJ6yfmcUNBVcEJQI # nginx-proxy stuff - VIRTUAL_HOST=pad.cttue.de - VIRTUAL_PORT=3000 - LETSENCRYPT_HOST=pad.cttue.de volumes: - ./uploads:/hedgedoc/public/uploads networks: cttue_web_services: restart: always depends_on: - database networks: cttue_web_services: external: true