41 lines
1004 B
YAML
41 lines
1004 B
YAML
services:
|
|
db:
|
|
image: postgres:11.6-alpine
|
|
env_file:
|
|
- ../.env
|
|
container_name: hedgedoc_db
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./data:/var/lib/postgresql/data
|
|
networks:
|
|
- homelab_net
|
|
|
|
hedgedoc:
|
|
image: quay.io/hedgedoc/hedgedoc:latest
|
|
container_name: hedgedoc
|
|
restart: unless-stopped
|
|
env_file:
|
|
- ../.env
|
|
environment:
|
|
- CMD_DOMAIN=localhost
|
|
- CMD_DB_URL=postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@db/$POSTGRES_DB
|
|
- CMD_URL_ADDPORT=true
|
|
- CMD_ALLOW_ORIGIN=localhost,hedgedoc.homelab,notes.xiteng.site
|
|
- CMD_PROTOCOL_USESSL=false
|
|
volumes:
|
|
- ./uploads:/hedgedoc/public/uploads
|
|
depends_on:
|
|
- db
|
|
ports:
|
|
- "3000:3000"
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.hedgedoc.rule=Host(`hedgedoc.homelab`)"
|
|
- "traefik.http.services.hedgedoc.loadbalancer.server.port=3000"
|
|
networks:
|
|
- homelab_net
|
|
|
|
networks:
|
|
homelab_net:
|
|
external: true
|