After reinstalling OMV I setup everything as usual, but somehow the nextcloud stack isn't working, although it worked on previous installations.
Code
services:
nextcloud:
image: linuxserver/nextcloud
container_name: nextcloud
environment:
- PUID=1000 #change PUID if needed
- PGID=100 #change PGID if needed
- TZ=Europe/Berlin #change Time Zone if needed
volumes:
- /srv/dev-disk-by-id-dm-name-sda-crypt/appdata/nextcloud/config:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted
- /srv/dev-disk-by-id-dm-name-sda-crypt/appdata/nextcloud/data:/data #/srv/dev-disk-by-label-disk1 needs to be adjusted
depends_on:
- mariadb
# ports: # uncomment this and the next line if you want to bypass the proxy
# - 450:443
restart: unless-stopped
mariadb:
image: linuxserver/mariadb
container_name: nextclouddb
environment:
- PUID=1000 #change PUID if needed
- PGID=100 #change PGID if needed
- MYSQL_ROOT_PASSWORD=MyPassword #change password
- TZ=Europe/Berlin #Change Time Zone if needed
volumes:
- /srv/dev-disk-by-id-dm-name-sda-crypt/appdata/nextclouddb:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted
restart: unless-stopped
letsencrypt:
image: linuxserver/letsencrypt
# image: linuxserver/swag #uncomment this line and comment the previous one if you want to use the new swag container (see link at bottom of the post)
container_name: letsencrypt
cap_add:
- NET_ADMIN
environment:
- PUID=1000 #change PUID if needed
- PGID=100 #change PGID if needed
- TZ=Europe/Berlin # change Time Zone if needed
- URL=mydns.duckdns.org #insert your domain name - yourdomain.url
- SUBDOMAINS=www,
- VALIDATION=http
- EMAIL=mymail@mailbox.org # define email; required to renew certificate
volumes:
- /srv/dev-disk-by-id-dm-name-sda-crypt/appdata/letsencrypt:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted
ports:
- 444:443
- 81:80
restart: unless-stopped
Alles anzeigen
From the offical guide.
Portainer log:
Code
-1 }">
2020/09/26 09:38:11 [DEBUG] [chisel, monitoring] [check_interval_seconds: 10.000000] [message: starting tunnel management process]
-1 }">
2020/09/26 09:38:21 http error: Invalid JWT token (err=Invalid JWT token) (code=401)
-1 }">
2020/09/26 09:38:21 http error: Unauthorized (err=Unauthorized) (code=401)
-1 }">
2020/09/26 09:38:21 http error: No administrator account found inside the database (err=Object not found inside the database) (code=404)
-1 }">
2020/09/26 09:38:21 http error: No administrator account found inside the database (err=Object not found inside the database) (code=404)
-1 }">
2020/09/26 09:38:21 http error: No administrator account found inside the database (err=Object not found inside the database) (code=404)
-1 }">
time="2020-09-26T09:45:02Z" level=error msg="Could not parse config for project mystack : Unsupported config option for services service: 'letsencrypt'\nUnsupported config option for services service: 'mariadb'\nUnsupported config option for services service: 'nextcloud'"
-1 }">
2020/09/26 09:45:02 http error: Unsupported config option for services service: 'letsencrypt'
-1 }">
Unsupported config option for services service: 'mariadb'
-1 }">
Unsupported config option for services service: 'nextcloud' (err=Unsupported config option for services service: 'letsencrypt'
-1 }">
Unsupported config option for services service: 'mariadb'
-1 }">
Unsupported config option for services service: 'nextcloud') (code=500)
Alles anzeigen
I'm not sure what the actual mistake is. Mountpoint/User ID's are matching. Even reinstalling docker and portainer didn't help.
EDIT: Stupid mistake, sorry. Copy & Paste error. Forgot 'Version: "2"' at the beginng of the file