This repository has been archived on 2022-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
docker_systems/nextcloud/docker-compose.yml

54 lines
1.4 KiB
YAML
Raw Permalink Normal View History

version: "2"
2020-04-13 17:10:56 +02:00
services:
redis:
image: redis:alpine
restart: unless-stopped
app:
build: ./nextcloud
environment:
- MYSQL_PASSWORD
2022-06-01 21:12:48 +02:00
- "MYSQL_DATABASE=nextcloud"
- "MYSQL_USER=nextcloud"
- "MYSQL_HOST=172.17.0.1"
2022-06-01 21:12:48 +02:00
- "NEXTCLOUD_ADMIN_USER=thedoctor"
- NEXTCLOUD_ADMIN_PASSWORD
2022-06-01 21:12:48 +02:00
- "NEXTCLOUD_TRUSTED_DOMAINS=nextcloud.2li.ch nextcloud2.2li.local 10.7.89.103"
- "REDIS_HOST=redis"
- "SMTP_HOST=mail.infomaniak.com"
- "SMTP_SECURE=ssl"
2022-10-17 14:08:59 +02:00
- "SMTP_PORT=465"
- "SMTP_NAME=admin@zweili.ch"
- SMTP_PASSWORD
2022-10-17 14:08:59 +02:00
- "MAIL_FROM_ADDRESS=admin@zweili.ch"
2020-04-13 17:10:56 +02:00
depends_on:
- redis
volumes:
2022-05-17 19:36:49 +02:00
- nextcloud_data:/var/www/html
2020-06-29 09:22:46 +02:00
- ./custom-php.ini:/usr/local/etc/php/conf.d/zzz-custom.ini
2022-05-18 21:34:11 +02:00
ports:
- 8080:80
2022-06-01 21:12:48 +02:00
extra_hosts:
- "host.docker.internal:host-gateway"
2020-04-13 17:10:56 +02:00
restart: unless-stopped
cron:
2022-10-17 10:13:20 +02:00
# https://hub.docker.com/_/nextcloud/tags?page=1&name=apache
2022-10-22 10:55:46 +02:00
image: nextcloud:25.0.0-apache@sha256:c65b3a099746f9168a594adc84f586a6a40719f50889d7814a6b68f6e183b26b
2020-04-13 17:10:56 +02:00
restart: unless-stopped
volumes:
2022-05-17 19:36:49 +02:00
- nextcloud_data:/var/www/html
2020-04-13 17:10:56 +02:00
entrypoint: /cron.sh
depends_on:
- redis
extra_hosts:
- "host.docker.internal:host-gateway"
2022-05-17 19:36:49 +02:00
volumes:
nextcloud_data:
driver_opts:
type: "nfs"
o: "addr=10.7.89.108,nolock,hard,rw,vers=4.1,noatime"
2022-05-17 19:36:49 +02:00
device: ":/server_data/nextcloud/data"