Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions caddy/Caddyfile
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
}
}
7 changes: 7 additions & 0 deletions caddy/README.MD
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.
29 changes: 29 additions & 0 deletions caddy/docker-compose.caddy.yml
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
Copy link
Contributor

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.

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This volumes are bind mounts to your /mnt/docker/... directory.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- /mnt/docker/caddy/Caddyfile:/etc/caddy/Caddyfile
- ./caddy/Caddyfile:/etc/caddy/Caddyfile

- /mnt/docker/caddy/site:/srv
Copy link
Contributor

Choose a reason for hiding this comment

The 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:
2 changes: 2 additions & 0 deletions external-proxy/collabora.yml
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"
1 change: 1 addition & 0 deletions external-proxy/opencloud.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
services:
opencloud:
container_name: opencloud
environment:
# bind to all interfaces
PROXY_HTTP_ADDR: "0.0.0.0:9200"
Expand Down