version: "3" services: db: image: postgres:14 restart: always environment: - POSTGRES_USER=gitea - POSTGRES_PASSWORD=gitea - POSTGRES_DB=gitea networks: - gitea volumes: - ./postgres:/var/lib/postgresql/data server: image: gitea/gitea:1.17.3 container_name: gitea environment: - USER_UID=1002 # git - USER_GID=999 # docker - GITEA__database__DB_TYPE=postgres - GITEA__database__HOST=db:5432 - GITEA__database__NAME=gitea - GITEA__database__USER=gitea - GITEA__database__PASSWD=gitea - GITEA__security__SECRET_KEY=UVtqmCdTmLwgprrhXiLOOjTENkR1VXhmWCvJ9kwYBp545oGXFJ1Gakz3hk13dtIp - GITEA__security__INTERNAL_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE2Njc2ODY4NjZ9.So-OnzTxFU-Ps6jfad9rEZPGNnNBmbcF_wHhjsjF_0g - GITEA__openid__ENABLE_OPENID_SIGNIN=true - GITEA__openid__ENABLE_OPENID_SIGNUP=true - GITEA__service__DISABLE_REGISTRATION=false - GITEA__service__ALLOW_ONLY_EXTERNAL_REGISTRATION=true - VIRTUAL_HOST=git.cttue.de - VIRTUAL_PORT=3000 - LETSENCRYPT_HOST=git.cttue.de restart: always networks: - cttue_web_services - gitea ports: - 127.0.0.1:2222:22 volumes: - ./gitea-data:/data - /home/git/.ssh/:/data/git/.ssh - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro networks: cttue_web_services: external: true gitea: