Trying a new ansible install of nextcloud.
With the following compose:
services:
nextcloud:
container_name: nextcloud
hostname: nextcloud
restart: always
mem_limit: 200m
networks:
- nextcloud
- caddy-proxy
labels:
- com.centurylinklabs.watchtower.enable=false
environment:
- TZ=Pacific/Auckland
- PUID=1000
- PGID=1000
- BASEPATH=/hdd/docker-data
- DB_ROOT_PW=<redacted>
- DB_NAME=nextcloud
- DB_USER=nextcloud
- DB_PW=insecure
image: linuxserver/nextcloud:22.2.3-ls165
ports:
- "8088:80"
- "8090:443"
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- "/hdd/docker-data/nextcloud/nextcloud:/config"
- nextcloud:/data
mariadb:
container_name: nextcloud_mariadb
image: mariadb:10.5
restart: unless-stopped
mem_limit: 500m
command: mysqld --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF >
networks:
- nextcloud
volumes:
- "/hdd/docker-data/dbbackups:/mnt/"
- "/hdd/docker-data/nextcloud/mariadb:/scripts"
- mariadb:/var/lib/mysql
- mariadb:/tmp
environment:
MYSQL_ROOT_PASSWORD: <redacted>
MYSQL_USER: nextcloud
MYSQL_PASSWORD: insecure
MYSQL_DATABASE: nextcloud
################################################################################
networks:
nextcloud:
caddy-proxy:
driver: bridge
external: true
volumes:
mariadb:
the mariadb container is starting and it makes an empty nextcloud db.
But then the nextcloud container gets an error
Next Doctrine\DBAL\Exception\TableNotFoundException: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_appconfig' doesn't exist in /config/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:47
Stack trace:
And I can’t see what or where, something should be creating the rest of the nextcloud tables. What am I missing?
My config looks pretty similar to the reference one: SWAG setup - LinuxServer.io