docker-compose.yml 660 B

1234567891011121314151617181920212223242526
  1. version: '3.4'
  2. services:
  3. nextcloud:
  4. image: nextcloud
  5. container_name: nextcloud
  6. hostname: ${HOSTNAME}
  7. restart: on-failure:3
  8. volumes:
  9. - ./data/webroot:/var/www/html
  10. environment:
  11. - VIRTUAL_HOST=${HOSTNAME}
  12. - LETSENCRYPT_HOST=${HOSTNAME}
  13. - LETSENCRYPT_EMAIL=webmaster@${HOSTNAME}
  14. - SQLITE_DATABASE=@${HOSTNAME}
  15. - NEXTCLOUD_ADMIN_USER=${ADMIN_USER}
  16. - NEXTCLOUD_ADMIN_PASSWORD=${ADMIN_PASS}
  17. - TRUSTED_PROXIES=reverse-proxy
  18. - OVERWRITEPROTOCOL=https
  19. - OVERWRITEHOST=${HOSTNAME}
  20. networks:
  21. - reverse-proxy_default
  22. networks:
  23. reverse-proxy_default:
  24. external: true