feat: add Nextcloud service #25

Merged
polpetta merged 1 commits from nextcloud into master 2023-10-14 15:48:45 +02:00
3 changed files with 89 additions and 0 deletions

2
.gitignore vendored
View File

@ -4,3 +4,5 @@ config/
.idea/
env-searxng
.*.env
nextcloud/db.env
nextcloud/nextcloud.env

View File

@ -0,0 +1,85 @@
version: '3.9'
services:
db:
image: postgres:15-alpine
restart: unless-stopped
volumes:
- db:/var/lib/postgresql/data:Z
env_file:
- db.env
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
redis:
image: redis:7-alpine
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "1"
app:
image: nextcloud:production-apache
restart: unless-stopped
volumes:
- app:/var/www/html:z
- data:/data:z
env_file:
- db.env
- nextcloud.env
depends_on:
- db
- redis
networks:
- proxy
- default
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
cron:
image: nextcloud:production-apache
restart: unless-stopped
volumes:
- app:/var/www/html:z
- data:/data:z
entrypoint: /cron.sh
depends_on:
- db
- redis
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
volumes:
db:
driver: local
driver_opts:
type: none
o: bind
device: "/srv/docker/nextcloud/db"
app:
driver: local
driver_opts:
type: none
o: bind
device: "/srv/docker/nextcloud/app"
data:
driver: local
driver_opts:
type: none
o: bind
device: "/srv/mnt/nextcloud/data"
networks:
proxy:
external: true

View File

@ -1 +1,3 @@
client_max_body_size 15g;
proxy_request_buffering off;