services: app: image: nextcloud:28-fpm-alpine restart: unless-stopped volumes: - ./data/html:/var/www/html:z - ./data/custom_apps:/var/www/html/custom_apps - ./data/config:/var/www/html/config - ./data/data:/var/www/html/data environment: - POSTGRES_HOST=db - REDIS_HOST=redis env_file: - db.env depends_on: - db - redis db: image: postgres:alpine restart: unless-stopped volumes: - ./data/db:/var/lib/postgresql/data:z env_file: - db.env redis: image: redis:alpine restart: unless-stopped cron: image: nextcloud:28-fpm-alpine restart: unless-stopped volumes: - ./data/html:/var/www/html:z entrypoint: /cron.sh depends_on: - db - redis # collabora: # image: collabora/code # container_name: collabora # restart: unless-stopped # environment: # #- PUID=1000 # #- PGID=1000 # #- TZ=America/Chicago # - username=nextcloud # - password=password # # - domain=example.com # # - extra_params=--o:ssl.enable=true # ports: # - 9980:9980 web: build: ./web restart: unless-stopped ports: - 127.0.0.1:8080:80 volumes: - ./data/html:/var/www/html:z,ro depends_on: - app