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.
 
 
 
 
 

112 lines
2.2 KiB

  1. version: '2'
  2. networks:
  3. default:
  4. driver: bridge
  5. gitea:
  6. driver: bridge
  7. nextcloud:
  8. driver: bridge
  9. portainer:
  10. external: false
  11. volumes:
  12. gitea-db-data:
  13. driver: local
  14. gitea-data:
  15. driver: local
  16. nextcloud-db:
  17. driver: local
  18. nextcloud:
  19. driver: local
  20. portainer:
  21. driver: local
  22. services:
  23. nginx-proxy:
  24. image: nginx
  25. restart: always
  26. ports:
  27. - "80:80"
  28. - "443:443"
  29. volumes:
  30. - "./nginx/vhost.d:/etc/nginx/vhost.d"
  31. - "./nginx/html:/etc/nginx/html"
  32. - "./nginx/conf/nginx.conf:/etc/nginx/nginx.conf"
  33. - "/etc/letsencrypt/live/henryfjordan.com/fullchain.pem:/etc/nginx/certs/default.crt"
  34. - "/etc/letsencrypt/live/henryfjordan.com/privkey.pem:/etc/nginx/certs/default.key"
  35. - "./nginx/certs/dhparam.pem:/etc/nginx/certs/dhparam.pem"
  36. networks:
  37. - default
  38. - gitea
  39. - nextcloud
  40. - portainer
  41. gitea-postgres:
  42. image: postgres:9.5
  43. restart: always
  44. environment:
  45. - "POSTGRES_USER=gitea"
  46. - "POSTGRES_PASSWORD=gitea"
  47. - "POSTGRES_DB=gitea"
  48. volumes:
  49. - "gitea-db-data:/var/lib/postgresql/data"
  50. networks:
  51. - gitea
  52. gitea:
  53. image: gitea/gitea:latest
  54. restart: always
  55. volumes:
  56. - gitea-data:/data
  57. expose:
  58. - 3000
  59. ports:
  60. - "22:22"
  61. networks:
  62. - gitea
  63. environment:
  64. - DISABLE_REGISTRATION=true
  65. depends_on:
  66. - gitea-postgres
  67. - nginx-proxy
  68. nextcloud-db:
  69. image: postgres
  70. restart: always
  71. volumes:
  72. - nextcloud-db:/var/lib/postgresql/data
  73. environment:
  74. - "POSTGRES_USER=nextcloud"
  75. - "POSTGRES_PASSWORD=nextcloud"
  76. - "POSTGRES_DB=nextcloud"
  77. networks:
  78. - nextcloud
  79. nextcloud:
  80. image: nextcloud
  81. expose:
  82. - 8080
  83. ports:
  84. - "8080:80"
  85. volumes:
  86. - nextcloud:/var/www/html
  87. - ./apache/apache2.conf:/etc/apache2/apache2.conf
  88. restart: always
  89. networks:
  90. - nextcloud
  91. depends_on:
  92. - nextcloud-db
  93. - nginx-proxy
  94. portainer:
  95. image: portainer/portainer
  96. command: -H unix:///var/run/docker.sock
  97. volumes:
  98. - /var/run/docker.sock:/var/run/docker.sock
  99. - portainer:/data
  100. networks:
  101. - portainer