-
Notifications
You must be signed in to change notification settings - Fork 0
/
nc-aio-caddy.yml
40 lines (36 loc) · 1.1 KB
/
nc-aio-caddy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: "3.8"
# specifically made for Mac OS X Catalina
services:
caddy:
image: caddy:cloudflaredns
restart: unless-stopped
container_name: caddy
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./certs:/certs
- ./config:/config
- ./data:/data
- ./sites:/srv
ports:
- "443:443"
- "80:80" # oh, it hurts! probably not needed, but caddy will redirect to https
#network_mode: "host" # incompatible with mac os x docker desktop, blocks 443
nextcloud:
image: nextcloud/all-in-one:latest
restart: unless-stopped
container_name: nextcloud-aio-mastercontainer
ports:
- "8080:8080"
- "3478:3478"
- "8443:8443"
environment:
- APACHE_PORT=11001
- APACHE_IP_BINDING=0.0.0.0
#- SKIP_DOMAIN_VALIDATION=true # I really tried not to use this
- NEXTCLOUD_DATADIR=/Volumes/Nextcloud/Nextcloud-AIO
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock.raw:/var/run/docker.sock:ro
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer