--- services: db: image: docker.io/postgres:17 restart: unless-stopped environment: - POSTGRES_DB=db - POSTGRES_USER=db - POSTGRES_PASSWORD=db volumes: - db:/var/lib/postgresql/data/ gitea: image: "$IMAGEAPP" restart: unless-stopped ports: - "8080:3000" - "2222:2222" environment: - POSTGRES_HOST=db - GITEA__database__DB_TYPE=postgres - GITEA__database__HOST=db - GITEA__database__NAME=db - GITEA__database__USER=db - GITEA__database__PASSWD=db volumes: - config:/etc/gitea/ - data:/var/lib/gitea/ depends_on: - db volumes: db: {} config: {} data: {}