Initial commit

This commit is contained in:
2023-01-17 22:46:02 +01:00
commit d734b0cc46
14 changed files with 2625 additions and 0 deletions

71
docker-compose.yml Normal file
View File

@@ -0,0 +1,71 @@
version: '3'
services:
db:
image: postgres:14.6-alpine
restart: always
volumes:
- /mnt/data/db:/var/lib/postgresql/data
env_file:
- db.env
redis:
image: redis:7.0alpine
restart: always
app:
image: nextcloud:25.0.2-fpm-alpine
restart: always
links:
- db:db
extra_hosts:
- 'office.home-ewert.de:192.168.212.50'
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
env_file:
- db.env
depends_on:
- db
- redis
web:
build: ./web
restart: always
extra_hosts:
- 'office.home-ewert.de:192.168.212.50'
ports:
- 8080:80
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.0.2-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.3
# optionally mount a volume as local image source
environment:
PORT: 9000
command: -enable-url-source
ports:
- "9000:9000"
volumes:
nextcloud: