Last active
August 5, 2023 01:59
-
-
Save YourFriendCaspian/5521f23fae08c71c6db014962f5c8bcb to your computer and use it in GitHub Desktop.
Working default Nextcloud w/ Caddy docker compose file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://cloud.domain.com:443 { | |
header Strict-Transport-Security max-age=31536000; | |
reverse_proxy localhost:11000 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
caddy: | |
image: caddy:alpine | |
restart: unless-stopped | |
container_name: caddy | |
volumes: | |
- ./Caddyfile:/etc/caddy/Caddyfile | |
- ./certs:/certs | |
- ./config:/config | |
- ./data:/data | |
- ./sites:/srv | |
network_mode: "host" | |
nextcloud: | |
image: nextcloud/all-in-one:latest | |
restart: unless-stopped | |
container_name: nextcloud-aio-mastercontainer | |
ports: | |
- "8080:8080" | |
environment: | |
- APACHE_PORT=11000 | |
volumes: | |
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
depends_on: | |
- caddy | |
volumes: | |
nextcloud_aio_mastercontainer: | |
name: nextcloud_aio_mastercontainer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment