You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

docker-compose.yml 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. version: '2'
  2. services:
  3. postgresql:
  4. build: ./postgresql
  5. container_name: gogs-postgresql
  6. # restart: unless-stopped
  7. networks:
  8. gogs.internal.docker:
  9. aliases:
  10. - postgresql.gogs.internal.docker
  11. volumes:
  12. - ./data/postgresql/data:/var/lib/postgresql/data
  13. - ./data/postgresql/backup:/var/lib/postgresql/backup
  14. ports:
  15. - "127.0.0.1:35030:5432"
  16. env_file:
  17. - env
  18. gogs:
  19. build: ./gogs
  20. container_name: gogs-gogs
  21. # restart: unless-stopped
  22. networks:
  23. gogs.internal.docker:
  24. aliases:
  25. - gogs.gogs.internal.docker
  26. volumes:
  27. - ./data/gogs/logs:/app/gogs/log
  28. - ./data/gogs/conf:/data/gogs/conf
  29. - ./data/gogs/git:/data/git
  30. ports:
  31. - "127.0.0.1:35021:22"
  32. - "127.0.0.1:35022:3000"
  33. env_file:
  34. - env
  35. networks:
  36. gogs.internal.docker: