version: '3' services: db: image: docker.io/postgres:14-alpine restart: always volumes: - db:/var/lib/postgresql/data env_file: - db.env redis: image: docker.io/redis:alpine restart: always app: image: docker.io/nextcloud:27-fpm-alpine restart: always volumes: - nextcloud:/var/www/html environment: - POSTGRES_HOST=db - REDIS_HOST=redis - PHP_UPLOAD_LIMIT=10G - PHP_MEMORY_LIMIT=4G env_file: - db.env depends_on: - db - redis web: build: ./web restart: always ports: - "127.0.0.1:13323:80" volumes: - nextcloud:/var/www/html:ro environment: - VIRTUAL_HOST=trivernis.net - LETSENCRYPT_HOST= - LETSENCRYPT_EMAIL= depends_on: - app cron: image: docker.io/nextcloud:27-fpm-alpine restart: always volumes: - nextcloud:/var/www/html entrypoint: /cron.sh depends_on: - db - redis volumes: db: nextcloud: