77 lines
1.7 KiB
YAML
77 lines
1.7 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
db:
|
|
image: postgres:14.10-alpine
|
|
restart: always
|
|
volumes:
|
|
- /mnt/data/db:/var/lib/postgresql/data
|
|
env_file:
|
|
- db.env
|
|
|
|
redis:
|
|
image: redis:7.2-alpine
|
|
restart: always
|
|
|
|
app:
|
|
image: nextcloud:29.0.1-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:29.0.1-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:1.2.4
|
|
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:
|