From d08b77d3903621c13fba9a93864e54f4422c9b1b Mon Sep 17 00:00:00 2001 From: lab Date: Thu, 2 Dec 2021 23:21:17 +0800 Subject: [PATCH] feat: add gitea --- gitea/docker-compose.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 gitea/docker-compose.yml diff --git a/gitea/docker-compose.yml b/gitea/docker-compose.yml new file mode 100644 index 0000000..a79da26 --- /dev/null +++ b/gitea/docker-compose.yml @@ -0,0 +1,31 @@ +version: "3.9" + +services: + gitea: + image: gitea/gitea + container_name: "git.esin.io" + environment: + - "TZ=Asia/Shanghai" + labels: + - "traefik.enable=true" + - "traefik.http.routers.gitea.rule=Host(`git.esin.io`)" + - "traefik.http.routers.gitea.entrypoints=websecure" + - "traefik.http.routers.gitea.tls=true" + - "traefik.http.routers.gitea.middlewares=gitea-mw" + - "traefik.http.middlewares.gitea-mw.compress=true" + - "traefik.http.middlewares.gitea-mw.compress.excludedcontenttypes=text/event-stream" + - "traefik.http.services.gitea.loadbalancer.server.port=3000" + volumes: + - ./gitea:/data + ports: + - "2222:22" + external_links: + - postgresql + networks: + - traefik + - database +networks: + traefik: + external: true + database: + external: true \ No newline at end of file