Convert nextcloud to nginx/fpm and fix cron
This commit is contained in:
parent
282427bb82
commit
6a9ff37778
2 changed files with 206 additions and 26 deletions
|
@ -1,24 +1,15 @@
|
|||
[services]
|
||||
|
||||
[services.nextcloud]
|
||||
image = "nextcloud:apache"
|
||||
container_name = "nextcloud"
|
||||
restart = "always"
|
||||
ports = ["1869:80"]
|
||||
networks = ["nextcloud", "postgres", "proxy"]
|
||||
[services.nextcloud-web]
|
||||
image = "nginx:alpine"
|
||||
container_name = "nextcloud-web"
|
||||
restart = "unless-stopped"
|
||||
networks = ["nextcloud", "proxy"]
|
||||
volumes = [
|
||||
"/docker/nextcloud:/var/www/html",
|
||||
"/mnt/Storage/Nextcloud:/var/www/html/data",
|
||||
"/mnt/Storage/Syncthing:/Syncthing",
|
||||
"/mnt/Storage/Media/Music:/Music",
|
||||
"/etc/localtime:/etc/localtime:ro",
|
||||
"./nginx.conf:/etc/nginx/nginx.conf",
|
||||
"/docker/nextcloud:/var/www/html:ro",
|
||||
]
|
||||
environment = [
|
||||
"TZ=Europe/Helsinki",
|
||||
"REDIS_HOST=redis",
|
||||
"REDIS_HOST_PASSWORD=123",
|
||||
]
|
||||
depends_on = ["redis"]
|
||||
depends_on = ["nextcloud"]
|
||||
labels = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.nextcloud-redirect.entrypoints=http",
|
||||
|
@ -32,21 +23,37 @@ labels = [
|
|||
"traefik.http.services.nextcloud.loadbalancer.server.port=80",
|
||||
]
|
||||
|
||||
[services.nextcloud]
|
||||
image = "nextcloud:fpm-alpine"
|
||||
container_name = "nextcloud"
|
||||
restart = "unless-stopped"
|
||||
user = "33:33"
|
||||
networks = ["nextcloud", "postgres", "proxy"]
|
||||
volumes = [
|
||||
"/docker/nextcloud:/var/www/html",
|
||||
"/mnt/Storage/Nextcloud:/var/www/html/data",
|
||||
"/mnt/Storage/Syncthing:/Syncthing",
|
||||
"/mnt/Storage/Media/Music:/Music",
|
||||
"/etc/localtime:/etc/localtime:ro",
|
||||
]
|
||||
environment = [
|
||||
"TZ=Europe/Helsinki",
|
||||
"REDIS_HOST=redis",
|
||||
"REDIS_HOST_PASSWORD=123",
|
||||
"TRUSTED_PROXIES=traefik",
|
||||
"NEXTCLOUD_TRUSTED_DOMAINS=cloud.korhonen.cc",
|
||||
"OVERWRITEHOST=cloud.korhonen.cc",
|
||||
"OVERWRITEPROTOCOL=https",
|
||||
]
|
||||
depends_on = ["redis"]
|
||||
|
||||
[services.redis]
|
||||
image = "redis:alpine"
|
||||
container_name = "redis"
|
||||
networks = ["nextcloud"]
|
||||
restart = "always"
|
||||
restart = "unless-stopped"
|
||||
command = "redis-server --requirepass 123"
|
||||
|
||||
[services.cron]
|
||||
image = "nextcloud:apache"
|
||||
container_name = "nextcloud-cron"
|
||||
restart = "always"
|
||||
volumes = ["/docker/nextcloud:/var/www/html"]
|
||||
entrypoint = "/cron.sh"
|
||||
depends_on = ["redis"]
|
||||
|
||||
[services.coturn]
|
||||
image = "instrumentisto/coturn"
|
||||
container_name = "coturn"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue