2023-03-24 16:46:33 +00:00
|
|
|
# SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
---
|
|
|
|
services:
|
|
|
|
backend:
|
2023-03-28 06:59:00 +00:00
|
|
|
image: ghcr.io/hedgedoc/hedgedoc/backend:develop
|
2023-03-24 16:46:33 +00:00
|
|
|
volumes:
|
|
|
|
- $PWD/.env:/usr/src/app/backend/.env
|
|
|
|
- hedgedoc_uploads:/usr/src/app/backend/uploads
|
|
|
|
|
|
|
|
frontend:
|
2023-03-28 06:59:00 +00:00
|
|
|
image: ghcr.io/hedgedoc/hedgedoc/frontend:develop
|
2023-03-24 16:46:33 +00:00
|
|
|
environment:
|
|
|
|
HD_BASE_URL: "${HD_BASE_URL}"
|
|
|
|
|
|
|
|
db:
|
2023-03-28 06:59:00 +00:00
|
|
|
image: postgres:15
|
2023-03-24 16:46:33 +00:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: "${HD_DATABASE_USER}"
|
|
|
|
POSTGRES_PASSWORD: "${HD_DATABASE_PASS}"
|
|
|
|
POSTGRES_DB: "${HD_DATABASE_NAME}"
|
|
|
|
|
|
|
|
proxy:
|
2023-03-28 06:59:00 +00:00
|
|
|
image: caddy:latest
|
2023-03-24 16:46:33 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
HD_BASE_URL: "${HD_BASE_URL}"
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
|
|
|
- "443:443/udp"
|
|
|
|
volumes:
|
|
|
|
- $PWD/Caddyfile:/etc/caddy/Caddyfile
|
|
|
|
- caddy_data:/data
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
hedgedoc_uploads:
|
|
|
|
caddy_data:
|