This repository has been archived on 2024-06-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nextcloud-cloudlorean/docker-compose.yml
2023-01-17 20:45:43 +01:00

77 lines
1.7 KiB
YAML

version: '3'
services:
db:
image: postgres:14-alpine
restart: always
volumes:
- /mnt/data/db:/var/lib/postgresql/data
env_file:
- db.env
redis:
image: redis:7-alpine
restart: always
app:
image: nextcloud:25-fpm-alpine
# ports:
# - 8080:80
restart: always
volumes:
- nextcloud:/var/www/html
- /mnt/data/nextcloud-data:/var/www/html/data
- /mnt/data/conf/php-fpm.d:/usr/local/etc/php-fpm.d/
environment:
- POSTGRES_HOST=db
- REDIS_HOST=redis
extra_hosts:
- 'cloudlorean.de:192.168.212.50'
- 'office.cloudlorean.de:192.168.212.50'
env_file:
- db.env
depends_on:
- db
- redis
web:
build: ./web
restart: always
ports:
- 8080:80
extra_hosts:
- 'cloudlorean.de:192.168.212.50'
- 'office.cloudlorean.de:192.168.212.50'
volumes:
- nextcloud:/var/www/html:ro
- /mnt/data/conf/php-fpm.d:/usr/local/etc/php-fpm.d/:ro
depends_on:
- app
cron:
image: nextcloud:25-fpm-alpine
restart: always
volumes:
- nextcloud:/var/www/html
- /mnt/data/nextcloud-data:/var/www/html/data
- /mnt/data/conf/php-fpm.d:/usr/local/etc/php-fpm.d/
entrypoint: /cron.sh
depends_on:
- db
- redis
imaginary:
image: h2non/imaginary:latest
restart: always
# optionally mount a volume as local image source
volumes:
- /mnt/data/imaginary:/mnt/data
environment:
PORT: 9000
command: -enable-url-source -mount /mnt/data
ports:
- "9000:9000"
volumes:
nextcloud: