version: '3' services: gitea: image: gitea/gitea:1.22 depends_on: - db volumes: - /data/git.jean-cloud.net/web:/data ports: - "22529:22" restart: unless-stopped networks: default: ipv4_address: $NET.100 db: image: postgres:16-alpine volumes: - /data/git.jean-cloud.net/db:/var/lib/postgresql/data restart: unless-stopped networks: default: ipv4_address: $NET.101 deploy: resources: limits: cpus: '1' memory: 300M networks: default: ipam: config: - subnet: $NET.0/24