-
Notifications
You must be signed in to change notification settings - Fork 50
Caddy #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Caddy #22
Changes from all commits
ddfa3b2
a8bb2c6
03dc61e
8bb6742
e7429f4
e2076d2
28a7faf
091c6c2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| (cloudflare) { | ||
| tls { | ||
| dns cloudflare APIKEY | ||
| resolvers 1.1.1.1 | ||
| } | ||
| } | ||
| *.fqdn.de { | ||
| import cloudflare | ||
|
|
||
| @cloud host cloud.fqdn.de | ||
| @collabora host collabora.fqdn.de | ||
| @wopiserver host wopiserver.fqdn.de | ||
|
|
||
| handle @cloud { | ||
| reverse_proxy opencloud:9200 | ||
| } | ||
| handle @collabora { | ||
| reverse_proxy collabora:9980 | ||
| } | ||
| handle @wopiserver { | ||
| reverse_proxy collaboration:9300 | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| Here you find two files: | ||
| # docker-compose.caddy.yml | ||
| # Caddyfile | ||
| After you copied .env.example to .env please add :caddy/docker-compose.caddy.yml as last entry. | ||
| This will install a caddy reverse proxy server along with your OpenCloud deployment. | ||
| As Caddy needs a config file copy the one from /caddy/Caddyfile to your directory. | ||
| Fill your API-Key. |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,29 @@ | ||||||
| services: | ||||||
| caddy: | ||||||
| image: ghcr.io/caddybuilds/caddy-cloudflare:latest | ||||||
| cap_add: | ||||||
| - NET_ADMIN | ||||||
| container_name: caddy | ||||||
| hostname: caddy | ||||||
| environment: | ||||||
| - CADDY_INGRESS_NETWORKS=opencloud-compose_opencloud-net | ||||||
| restart: unless-stopped | ||||||
| ports: | ||||||
| - "80:80" | ||||||
| - "443:443" | ||||||
| - "443:443/udp" | ||||||
| volumes: | ||||||
| - /mnt/docker/caddy/Caddyfile:/etc/caddy/Caddyfile | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This volumes are bind mounts to your
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| - /mnt/docker/caddy/site:/srv | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Which purpose do these bind mounts fulfill? |
||||||
| - /mnt/docker/caddy/data:/data | ||||||
| - /mnt/docker/caddy/config:/config | ||||||
| - /var/run/docker.sock:/var/run/docker.sock | ||||||
| networks: | ||||||
| opencloud-net: null | ||||||
| networks: | ||||||
| opencloud-net: | ||||||
| name: opencloud-compose_opencloud-net | ||||||
| volumes: | ||||||
| data: | ||||||
| config: | ||||||
| site: | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,12 @@ | ||
| --- | ||
| services: | ||
| collaboration: | ||
| container_name: collaboration | ||
| ports: | ||
| # expose the wopi server | ||
| - "9300:9300" | ||
| collabora: | ||
| container_name: collabora | ||
| ports: | ||
| # expose the collabora server | ||
| - "9980:9980" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let us please not override the container names.