version: '3' services: nc-db: image: mariadb:10.6 command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW restart: always volumes: - nc-db:/var/lib/mysql:Z environment: - MYSQL_ROOT_PASSWORD=${ADMIN_PASSWORD} - MARIADB_AUTO_UPGRADE=1 - MARIADB_DISABLE_UPGRADE_BACKUP=1 env_file: - .env nc-redis: image: redis:alpine restart: always nextcloud: image: nextcloud:fpm-alpine restart: always volumes: - nextcloud:/var/www/html:z environment: - MYSQL_HOST=nc-db - REDIS_HOST=nc-redis env_file: - .env depends_on: - nc-db - nc-redis nc-web: build: ./web restart: always ports: - 127.0.0.1:8080:80 volumes: - nextcloud:/var/www/html:z,ro depends_on: - nextcloud nc-cron: image: nextcloud:fpm-alpine restart: always volumes: - nextcloud:/var/www/html:z entrypoint: /cron.sh depends_on: - nc-db - nc-redis spdf: container_name: spdf image: frooodle/s-pdf ports: - '8080:8080' volumes: nc-db: nextcloud: