gitea/compose.yml
2026-01-09 20:24:14 +01:00

53 lines
1.1 KiB
YAML

version: "3"
services:
server:
image: docker.gitea.com/gitea:1.23.7
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=db:5432
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=${POSTGRES_PASSWORD}
restart: always
networks:
- internal
- proxy
volumes:
- gittea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
depends_on:
- db
db:
image: docker.io/library/postgres:14
restart: always
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=gitea
networks:
- internal
volumes:
- postgres:/var/lib/postgresql/data
networks:
internal:
driver: bridge
internal: true
proxy:
name: nginx-proxy_default
external: true
volumes:
postgres:
gittea:
driver_opts:
type: nfs
o: addr=217.100.0.2,rw,noatime,tcp
device: ":/mnt/Main/giteaData"