diff --git a/docker-compose.yml b/docker-compose.yml index 2a1e9a79..b6de6e54 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,3 +20,16 @@ services: # - APACHE_PORT=11000 # Is needed when running behind a reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md # - NEXTCLOUD_DATADIR="/mnt/ncdata" # Allows to set the host directory for Nextcloud's datadir. See https://github.com/nextcloud/all-in-one#how-to-change-the-default-location-of-nextclouds-datadir # - NEXTCLOUD_MOUNT="/mnt/" # Allows the Nextcloud container to access the chosen directory on the host. See https://github.com/nextcloud/all-in-one#how-to-allow-the-nextcloud-container-to-access-directories-on-the-host + + # # Optional: Caddy reverse proxy. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md + # # You can find further examples here: https://github.com/nextcloud/all-in-one/discussions/588 + # caddy: + # image: caddy:alpine + # restart: always + # container_name: caddy + # volumes: + # - ./Caddyfile:/etc/caddy/Caddyfile + # - ./certs:/certs + # - ./config:/config + # - ./data:/data + # - ./sites:/srv diff --git a/reverse-proxy.md b/reverse-proxy.md index 1a25e514..2f60eec0 100644 --- a/reverse-proxy.md +++ b/reverse-proxy.md @@ -106,7 +106,9 @@ Of course you need to modify `` to the domain on which you want ### 2. Use this startup command -After adjusting your reverse proxy config, use the following command to start AIO: +After adjusting your reverse proxy config, use the following command to start AIO:
+ +(For an docker-compose example, see the example further [below](#inspiration-for-a-docker-compose-file).) ``` # For x64 CPUs: @@ -157,13 +159,9 @@ nextcloud/all-in-one:latest -
+#### Inspiration for a docker-compose file -Inspiration for a docker-compose file - -Simply translate the docker run command into a docker-compose file. You can have a look at [this file](https://github.com/nextcloud/all-in-one/blob/main/docker-compose.yml) for some inspiration but you will need to modify it either way. - -
+Simply translate the docker run command into a docker-compose file. You can have a look at [this file](https://github.com/nextcloud/all-in-one/blob/main/docker-compose.yml) for some inspiration but you will need to modify it either way. You can find further examples here: https://github.com/nextcloud/all-in-one/discussions/588 --- @@ -193,4 +191,4 @@ If something does not work, follow the steps below: 1. Make sure to exactly follow the whole reverse proxy documentation step-for-step from top to bottom! 1. Find out if you can ping the private ip-address of the host that is running the docker daemon from inside the reverse proxy container (if runing the reverse proxy in a container). **Advice:** the `nextcloud-aio-mastercontainer` is **NOT** running the docker daemon. The host itself is running the docker daemon. 1. Try to configure everything from scratch if it still does not work! - +1. If nothing works and as last resort, you can modify `` to `localhost`. For that to work, the reverse proxy needs to be member of the host network. That means, that when running the reverse proxy inside a container, you need to use the `--network host` option when starting the container.