version: '3.8' services: web: image: gnode/gin-web:latest volumes: - ../gindata/gin-repositories:/data/repos:rw - ../volumes/ginweb:/data:rw - ../config/gogs:/custom:rw - gintmp:/data/tmp:rw restart: always environment: - PUID=1000 # 'ginuser' user id - PGID=2000 # 'ginservice' group id - GOGS_CUSTOM=/custom ports: - "2121:22" networks: net: ipv4_address: 172.23.0.10 aliases: - ginweb depends_on: - db logging: driver: "json-file" options: max-size: "1m" max-file: "10" db: image: postgres:11 env_file: ../config/postgres/pgressecrets.env restart: always networks: net: aliases: - ginpgres volumes: - ../gindata/gin-postgresdb:/var/lib/postgresql/data:rw logging: driver: "json-file" options: max-size: "1m" max-file: "10" volumes: gintmp: networks: net: ipam: driver: default config: - subnet: 172.23.0.0/16 gateway: 172.23.0.254