52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
version: "2"
|
|
|
|
services:
|
|
redis:
|
|
image: redis:alpine
|
|
restart: unless-stopped
|
|
|
|
app:
|
|
build: ./nextcloud
|
|
environment:
|
|
- MYSQL_PASSWORD
|
|
- "MYSQL_DATABASE=nextcloud"
|
|
- "MYSQL_USER=nextcloud"
|
|
- "MYSQL_HOST=host.docker.internal"
|
|
- "NEXTCLOUD_ADMIN_USER=thedoctor"
|
|
- NEXTCLOUD_ADMIN_PASSWORD
|
|
- "NEXTCLOUD_TRUSTED_DOMAINS=nextcloud.2li.ch nextcloud2.2li.local 10.7.89.103"
|
|
- "REDIS_HOST=redis"
|
|
- "SMTP_HOST=mail.infomaniak.com"
|
|
- "SMTP_SECURE=ssl"
|
|
- "SMTP_PORT=587"
|
|
- "SMTP_NAME=admin@2li.ch"
|
|
- SMTP_PASSWORD
|
|
- "MAIL_FROM_ADDRESS=admin@2li.ch"
|
|
depends_on:
|
|
- redis
|
|
volumes:
|
|
- nextcloud_data:/var/www/html
|
|
- ./custom-php.ini:/usr/local/etc/php/conf.d/zzz-custom.ini
|
|
ports:
|
|
- 8080:80
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
restart: unless-stopped
|
|
|
|
cron:
|
|
image: nextcloud@sha256:fbc625b4f744750443930c9e76e757a6eaa28789f6ab0a3e8f34658717f132dd #23.0.3-apache
|
|
restart: unless-stopped
|
|
volumes:
|
|
- nextcloud_data:/var/www/html
|
|
entrypoint: /cron.sh
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
|
|
volumes:
|
|
nextcloud_data:
|
|
driver_opts:
|
|
type: "nfs"
|
|
o: "addr=10.7.89.108,nolock,hard,rw,vers=4.1"
|
|
device: ":/server_data/nextcloud/data"
|