💻 Self-hosted, full-stack Gitea service designed for use with Traefik https://habd.as/code/high-tea/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
820 B

version: "2.1"
services:
gitea:
image: gitea/gitea:1.6
depends_on:
db:
condition: service_healthy
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
networks:
- web
- default
volumes:
- /opt/gitea:/data
expose:
- "3000"
ports:
- "2222:22"
labels:
- "traefik.docker.network=web"
- "traefik.enable=true"
- "traefik.frontend.rule=Host:git.example.com"
- "traefik.port=3000"
- "traefik.protocol=http"
db:
image: postgres:9.6
restart: always
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea
- POSTGRES_DB=gitea
volumes:
- /opt/postgres:/var/lib/postgresql/data
healthcheck:
test: "exit 0"
networks:
web:
external: true