infrastructure/ansible/roles/gitea/files/docker-compose.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

version: "2.3"
services:
gitea:
2021-05-21 21:57:16 +01:00
image: gitea/gitea:1.14.2
restart: unless-stopped
environment:
- USER_UID={{ docker_user.id }}
- USER_GID={{ docker_user.id }}
ports:
- 3022:3022
depends_on:
- db
2021-01-22 18:59:52 +00:00
- redis
volumes:
- "{{ app_data_dir }}/gitea/app.ini:/data/gitea/conf/app.ini"
- "{{ app_data_dir }}/gitea/:/data"
- /mnt/tank/files/repositories:/data/git
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
labels:
- traefik.enable=true
- traefik.http.routers.gitea.rule=Host(`git.theorangeone.net`)
- traefik.http.routers.gitea.tls.certresolver=le
- traefik.http.services.gitea-gitea.loadbalancer.server.port=3000
db:
image: postgres:12-alpine
restart: unless-stopped
volumes:
- /mnt/tank/dbs/postgres/gitea/:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=gitea
- POSTGRES_USER=gitea
2021-01-22 18:59:52 +00:00
redis:
image: redis:6-alpine
restart: unless-stopped
volumes:
- /mnt/tank/dbs/redis/gitea/:/data