version: '3' services: app: image: nextcloud:12 restart: unless-stopped volumes: - nextcloud:/var/www/html web: image: abiosoft/caddy restart: unless-stopped privileged: true volumes: - ./Caddyfile:/etc/Caddyfile - caddy:/root/.caddy environment: - VIRTUAL_HOST=193.112.96.151 links: - app ports: - 80:80 - 443:443 networks: - default volumes: nextcloud: caddy: networks: default: