Hi all,
I’m using owncloud as docker image with traefik as reverse proxy on a qnap nas system. Everything works fine with docker image 10.0.10, but this version is deprecated and I want to use regularly updated images in the future, e.g. owncloud/server -> latest. I already tried the configuration described under in the manual but I’m always getting Bad Gateway error, changed Traefik.port to 8080 etc…I would also prefer to use my local database outside docker, like in my current configuration.
Can somebody please help me to configure my current docker-compose files to get an actual owncloud version working. I’m also relatively new to docker environments therefore some additional information can help a lot e.g. difference between these two images.
Many thanks!
Working configuration for image: owncloud:10.0.10
docker-compose.yml for owncloud:10.0.10:
version: '2.1'
services:
owncloud:
image: owncloud:10.0.10
restart: always
volumes:
- "/share/Container/owncloud/data:/var/www/html/data"
- "/share/Container/owncloud/config:/var/www/html/config"
environment:
- OWNCLOUD_DOMAIN=owncloud.XXXXXXXXXX.XXX
networks:
- web
- internal
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:owncloud.XXXXXXXXXX.XXX
- traefik.port=80
- traefik.docker.network=web
networks:
web:
external: true
internal:
docker-compose.yml for traefik -> I know it’s an old version
version: '2'
services:
proxy:
image: traefik:v1.7.20
command: --configFile=/traefik.toml
restart: always
# Here's the network we created:
networks:
- web
# The traefik entryPoints
ports:
- 80:80
- 443:443
- 8080:8080
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:XXXXXXXXXX.XXX
# Traefik will proxy to its own GUI.
- traefik.port=8080
- traefik.docker.network=web
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /share/Container/traefik/traefik.toml:/traefik.toml
- /share/Container/traefik/acme.json:/acme.json
networks:
web:
external: true
traefik.toml
ntryPoint = s line to get debug info with “docker logs”:
#debug = true
defaultEntryPoints = ["https","http"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[docker]
endpoint = "unix:///var/run/docker.sock"
domain = "XXXXX.ddns.net"
watch = true
exposedbydefault = false
[acme]
email = "XXXXXXXXXX"
storage = "/acme.json"
entryPoint = "https"
OnHostRule = true
[acme.httpChallenge]
entryPoint = "http"
[web]
address = ":8080"