version: "3" services: gitea: image: gitea/gitea:latest container_name: gitea environment: - USER_UID=1000 - USER_GID=1000 - GITEA__database__DB_TYPE=postgres - GITEA__database__HOST="postgresql:${POSTGRES_PORT}" - GITEA__database__NAME="${GIT_DB}" - GITEA__database__USER="${GIT_DB_USER}" - GITEA__database__PASSWD="${GIT_DB_USER_PASSWORD}" restart: always volumes: - /root/containers/gitea/data:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: - "${GIT_UI_PORT}:3000" - "${GIT_PORT}:22" networks: - postgresql-network - caddy-network volumes: gitea: name: gitea networks: postgresql-network: external: true name: postgresql-network caddy-network: external: true name: caddy-network