docker-compose.yml 891 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. version: '3'
  2. networks:
  3. web:
  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.frontend.rule: "Host: cloud.${CHATONS_DOMAIN:-localhost}, www.cloud.${CHATONS_DOMAIN:-localhost}"
  32. networks:
  33. - web
  34. - default