docker-compose.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. version: '3.8'
  2. services:
  3. web:
  4. image: gnode/gin-web:latest
  5. volumes:
  6. - ../gindata/gin-repositories:/data/repos:rw
  7. - ../volumes/ginweb:/data:rw
  8. - ../config/gogs:/custom:rw
  9. - gintmp:/data/tmp:rw
  10. restart: always
  11. environment:
  12. - PUID=1000 # 'ginuser' user id
  13. - PGID=2000 # 'ginservice' group id
  14. - GOGS_CUSTOM=/custom
  15. ports:
  16. - "2121:22"
  17. networks:
  18. net:
  19. ipv4_address: 172.23.0.10
  20. aliases:
  21. - ginweb
  22. depends_on:
  23. - db
  24. logging:
  25. driver: "json-file"
  26. options:
  27. max-size: "1m"
  28. max-file: "10"
  29. db:
  30. image: postgres:11
  31. env_file: ../config/postgres/pgressecrets.env
  32. restart: always
  33. networks:
  34. net:
  35. aliases:
  36. - ginpgres
  37. volumes:
  38. - ../gindata/gin-postgresdb:/var/lib/postgresql/data:rw
  39. logging:
  40. driver: "json-file"
  41. options:
  42. max-size: "1m"
  43. max-file: "10"
  44. volumes:
  45. gintmp:
  46. networks:
  47. net:
  48. ipam:
  49. driver: default
  50. config:
  51. - subnet: 172.23.0.0/16
  52. gateway: 172.23.0.254