dotfiles/docker/gitea/docker-compose.yaml

37 lines
965 B
YAML
Raw Normal View History

2020-02-02 21:14:37 +02:00
services:
gitea:
container_name: gitea
2020-04-14 22:34:56 +03:00
image: gitea/gitea:1
2020-02-02 21:14:37 +02:00
environment:
2020-02-10 00:31:05 +02:00
- TZ=Europe/Helsinki
2020-02-02 21:14:37 +02:00
- USER_UID=1000
- USER_GID=1000
2020-07-11 14:24:47 +03:00
restart: unless-stopped
2020-02-02 21:14:37 +02:00
networks:
2021-01-09 13:40:57 +02:00
- postgres
2020-02-13 21:24:50 +02:00
- proxy
2020-02-02 21:14:37 +02:00
ports:
2020-04-14 22:34:56 +03:00
- "3000:3000"
2021-09-03 15:16:18 +03:00
- "22:22"
2020-02-13 21:24:50 +02:00
volumes:
2020-07-11 13:36:40 +03:00
- /docker/gitea:/data
2020-02-13 21:24:50 +02:00
- /etc/localtime:/etc/localtime:ro
labels:
2020-04-14 22:34:56 +03:00
- "traefik.enable=true"
2020-02-13 21:24:50 +02:00
2020-04-14 22:34:56 +03:00
- "traefik.http.routers.gitea-redirect.entrypoints=http"
2020-12-06 11:36:01 +02:00
- "traefik.http.routers.gitea-redirect.rule=Host(`git.korhonen.cc`)"
- "traefik.http.routers.gitea-redirect.middlewares=http2https@file"
2020-02-13 21:24:50 +02:00
2020-04-14 22:34:56 +03:00
- "traefik.http.routers.gitea.entrypoints=https"
2020-12-06 11:36:01 +02:00
- "traefik.http.routers.gitea.rule=Host(`git.korhonen.cc`)"
2020-04-14 22:34:56 +03:00
- "traefik.http.routers.gitea.service=gitea"
- "traefik.docker.network=proxy"
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
2020-02-02 21:14:37 +02:00
2020-02-13 21:24:50 +02:00
networks:
2021-01-09 13:40:57 +02:00
postgres:
2020-07-11 13:36:40 +03:00
external: true
2020-02-13 21:24:50 +02:00
proxy:
external: true