Files
compose/opengist/docker-compose.yml
2025-08-30 02:19:43 +08:00

31 lines
918 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: opengist
# TODO: 创建一个PR到官方仓库官方仓库的 entrypoint.sh 没有调用 CMD 指令
# 导致无法通过 command 覆盖默认执行的命令
# see: https://github.com/thomiceli/opengist/blob/master/docker/entrypoint.sh
services:
opengist:
container_name: opengist
image: ghcr.io/thomiceli/opengist:1.10
restart: unless-stopped
environment:
UID: 1000
GID: 1000
networks:
- proxy
volumes:
- "./data:/opengist"
- "./config.yml:/config.yml:ro"
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.opengist.Rule=Host(`gist.example.com`)"
- "traefik.http.routers.opengist.service=opengist"
- "traefik.http.routers.opengist.entrypoints=websecure"
- "traefik.http.services.opengist.loadBalancer.server.port=6157"
networks:
proxy:
name: proxy
external: true