version: "3" services: server: image: docker.gitea.com/gitea:1.23.7 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: - gitea:/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: gitea: driver_opts: type: nfs4 o: addr=217.100.0.2,rw,noatime,tcp,uid=1000,gid=1000 device: ":/mnt/Main/giteaData"