更新 Gitea、HedgeDoc、Homepage、MinIO、Uptime Kuma 的 Docker Compose 配置,添加 Traefik 代理和环境变量,新增 HedgeDoc 的 .gitignore 文件
This commit is contained in:
+13
-6
@@ -1,12 +1,10 @@
|
||||
services:
|
||||
db:
|
||||
image: postgres:15
|
||||
image: postgres:11.6-alpine
|
||||
env_file:
|
||||
- ../.env
|
||||
container_name: hedgedoc_db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_DB=${POSTGRES_DB}
|
||||
volumes:
|
||||
- ./data:/var/lib/postgresql/data
|
||||
networks:
|
||||
@@ -16,15 +14,24 @@ services:
|
||||
image: quay.io/hedgedoc/hedgedoc:latest
|
||||
container_name: hedgedoc
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- ../.env
|
||||
environment:
|
||||
- CMD_DB_URL=postgres://$(POSTGRES_USER):$(POSTGRES_PASSWORD)@db:5432/$(POSTGRES_DB)
|
||||
- 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user