docker-compose.yml 975 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. version: '3'
  2. networks:
  3. proxytanet:
  4. external: true
  5. services:
  6. db:
  7. image: postgres:10-alpine
  8. restart: unless-stopped
  9. environment:
  10. - POSTGRES_DB=workaround # nextcloud wants to create the db itself
  11. env_file:
  12. - .env
  13. volumes:
  14. - ${CHATONS_ROOT_DIR:-/srv/chatons}/nextcloud/db:/var/lib/postgresql/data
  15. app:
  16. image: nextcloud:fpm-alpine
  17. restart: unless-stopped
  18. environment:
  19. - POSTGRES_DB=nextcloud
  20. env_file:
  21. - .env
  22. volumes:
  23. - ${CHATONS_ROOT_DIR:-/srv/chatons}/nextcloud/app:/var/www/html
  24. web:
  25. build: .
  26. restart: unless-stopped
  27. volumes:
  28. - ${CHATONS_ROOT_DIR:-/srv/chatons}/nextcloud/app:/var/www/html:ro
  29. labels:
  30. traefik.enable: "true"
  31. traefik.backend: "nextcloud"
  32. traefik.frontend.rule: "Host: cloud.${CHATONS_DOMAIN:-local}, www.cloud.${CHATONS_DOMAIN:-local}"
  33. traefik.docker.network: "proxytanet"
  34. networks:
  35. - proxytanet
  36. - default