foodotfiles/docker/gitea/docker-compose.yaml

47 lines
1.2 KiB
YAML
Raw Normal View History

2020-04-14 19:34:56 +00:00
version: "2"
2020-02-02 19:14:37 +00:00
services:
gitea:
container_name: gitea
2020-04-14 19:34:56 +00:00
image: gitea/gitea:1
2020-02-02 19:14:37 +00:00
environment:
2020-02-09 22:31:05 +00:00
- TZ=Europe/Helsinki
2020-02-02 19:14:37 +00:00
- USER_UID=1000
- USER_GID=1000
- DB_TYPE=mysql
2020-07-11 10:36:40 +00:00
- DB_HOST=mariadb:3306
2020-02-02 19:14:37 +00:00
- DB_NAME=gitea
- DB_USER=gitea
2020-07-11 10:36:40 +00:00
- DB_PASSWD=${MYSQL_PASS}
2020-07-11 11:24:47 +00:00
restart: unless-stopped
2020-02-02 19:14:37 +00:00
networks:
2020-07-11 10:36:40 +00:00
- mariadb
2020-02-13 19:24:50 +00:00
- proxy
2020-02-02 19:14:37 +00:00
ports:
2020-04-14 19:34:56 +00:00
- "3000:3000"
- "222:22"
2020-02-13 19:24:50 +00:00
volumes:
2020-07-11 10:36:40 +00:00
- /docker/gitea:/data
2020-02-13 19:24:50 +00:00
- /etc/localtime:/etc/localtime:ro
labels:
2020-04-14 19:34:56 +00:00
- "traefik.enable=true"
2020-02-13 19:24:50 +00:00
2020-04-14 19:34:56 +00:00
- "traefik.http.routers.gitea-redirect.entrypoints=http"
2020-12-06 09:36:01 +00:00
- "traefik.http.routers.gitea-redirect.rule=Host(`git.korhonen.cc`)"
2020-04-14 19:34:56 +00:00
- "traefik.http.middlewares.http2https.redirectscheme.scheme=https"
- "traefik.http.routers.gitea-redirect.middlewares=http2https"
2020-02-13 19:24:50 +00:00
2020-04-14 19:34:56 +00:00
- "traefik.http.routers.gitea.entrypoints=https"
2020-12-06 09:36:01 +00:00
- "traefik.http.routers.gitea.rule=Host(`git.korhonen.cc`)"
2020-04-14 19:34:56 +00:00
- "traefik.http.routers.gitea.tls=true"
- "traefik.http.routers.gitea.tls.certresolver=http"
- "traefik.http.routers.gitea.service=gitea"
- "traefik.docker.network=proxy"
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
2020-02-02 19:14:37 +00:00
2020-02-13 19:24:50 +00:00
networks:
2020-07-11 10:36:40 +00:00
mariadb:
external: true
2020-02-13 19:24:50 +00:00
proxy:
external: true