添加服务配置文件和更新 .gitignore,包含 MinIO、Gitea、HedgeDoc、Homepage、Uptime Kuma 的 Docker Compose 配置
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
services:
|
||||
db:
|
||||
image: postgres:15
|
||||
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:
|
||||
- homelab_net
|
||||
|
||||
hedgedoc:
|
||||
image: quay.io/hedgedoc/hedgedoc:latest
|
||||
container_name: hedgedoc
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- CMD_DB_URL=postgres://$(POSTGRES_USER):$(POSTGRES_PASSWORD)@db:5432/$(POSTGRES_DB)
|
||||
- CMD_DOMAIN=localhost
|
||||
- CMD_URL_ADDPORT=true
|
||||
- CMD_PROTOCOL_USESSL=false
|
||||
depends_on:
|
||||
- db
|
||||
ports:
|
||||
- "3000:3000"
|
||||
networks:
|
||||
- homelab_net
|
||||
|
||||
networks:
|
||||
homelab_net:
|
||||
external: true
|
||||
Reference in New Issue
Block a user