foodotfiles/docker/gitea/docker-compose.yaml

62 lines
1.6 KiB
YAML
Raw Normal View History

2020-02-02 19:14:37 +00:00
version: '2'
services:
gitea:
container_name: gitea
image: gitea/gitea:latest
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-02-02 19:36:32 +00:00
- DB_HOST=mariadb-gitea:3306
2020-02-02 19:14:37 +00:00
- DB_NAME=gitea
- DB_USER=gitea
- DB_PASSWD=gitea
restart: always
networks:
- gitea
2020-02-13 19:24:50 +00:00
- proxy
2020-02-02 19:14:37 +00:00
ports:
- '3000:3000'
- '222:22'
depends_on:
2020-02-02 19:36:32 +00:00
- mariadb-gitea
2020-02-13 19:24:50 +00:00
volumes:
- /docker/gitea/gitea:/data
- /etc/localtime:/etc/localtime:ro
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.gitea-redirect.entrypoints=http'
- 'traefik.http.routers.gitea-redirect.rule=Host(`git.reekynet.com`)'
- 'traefik.http.middlewares.http2https.redirectscheme.scheme=https'
- 'traefik.http.routers.gitea-redirect.middlewares=http2https'
- 'traefik.http.routers.gitea.entrypoints=https'
- 'traefik.http.routers.gitea.rule=Host(`git.reekynet.com`)'
- '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-02 19:36:32 +00:00
mariadb-gitea:
2020-02-02 19:14:37 +00:00
container_name: mariadb-gitea
image: mariadb
restart: always
2020-02-04 15:21:11 +00:00
networks:
- gitea
2020-02-02 19:14:37 +00:00
environment:
2020-02-09 22:31:05 +00:00
- TZ=Europe/Helsinki
2020-02-04 15:21:11 +00:00
- MYSQL_ROOT_PASSWORD=gitea
2020-02-02 19:14:37 +00:00
volumes:
- /docker/gitea/mariadb:/var/lib/mysql
2020-02-04 15:21:11 +00:00
- /etc/localtime:/etc/localtime:ro
2020-02-13 19:24:50 +00:00
networks:
gitea:
external: false
proxy:
external: true