Nextcloud
· 1.5 KiB · Text
Исходник
version: "3.8"
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
restart: always
volumes:
- /volume1/docker/nextcloud/db:/var/lib/mysql:rw
environment:
- MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD
- MARIADB_AUTO_UPGRADE=1
- MARIADB_DISABLE_UPGRADE_BACKUP=1
- MYSQL_PASSWORD=$MYSQL_PASSWORD
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- TZ=Europe/Paris
redis:
image: redis:alpine
volumes:
- /volume1/docker/nextcloud/redis:/data:rw
environment:
TZ: Europe/Paris
restart: always
app:
image: nextcloud:apache
restart: always
ports:
- 8090:80
volumes:
- /volume1/docker/nextcloud/app:/var/www/html:rw
- /mnt/share/nextcloud:/var/www/html/data:rw
environment:
- MYSQL_HOST=db
- REDIS_HOST=redis
- MYSQL_PASSWORD=$MYSQL_PASSWORD
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- NEXTCLOUD_TRUSTED_DOMAINS=nextcloud.domain.com 192.168.1.1
- TRUSTED_PROXIES=nextcloud.domain.com 192.168.1.1
- OVERWRITEHOST=nextcloud.domain.com
- OVERWRITEPROTOCOL=https
depends_on:
- db
- redis
cron:
image: nextcloud:apache
restart: always
volumes:
- /volume1/docker/nextcloud/app:/var/www/html:rw
- /mnt/share/nextcloud:/var/www/html/data:rw
entrypoint: /cron.sh
depends_on:
- db
- redis
1 | version: "3.8" |
2 | services: |
3 | db: |
4 | image: mariadb |
5 | command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW |
6 | restart: always |
7 | volumes: |
8 | - /volume1/docker/nextcloud/db:/var/lib/mysql:rw |
9 | environment: |
10 | - MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD |
11 | - MARIADB_AUTO_UPGRADE=1 |
12 | - MARIADB_DISABLE_UPGRADE_BACKUP=1 |
13 | - MYSQL_PASSWORD=$MYSQL_PASSWORD |
14 | - MYSQL_DATABASE=nextcloud |
15 | - MYSQL_USER=nextcloud |
16 | - TZ=Europe/Paris |
17 | redis: |
18 | image: redis:alpine |
19 | volumes: |
20 | - /volume1/docker/nextcloud/redis:/data:rw |
21 | environment: |
22 | TZ: Europe/Paris |
23 | restart: always |
24 | app: |
25 | image: nextcloud:apache |
26 | restart: always |
27 | ports: |
28 | - 8090:80 |
29 | volumes: |
30 | - /volume1/docker/nextcloud/app:/var/www/html:rw |
31 | - /mnt/share/nextcloud:/var/www/html/data:rw |
32 | environment: |
33 | - MYSQL_HOST=db |
34 | - REDIS_HOST=redis |
35 | - MYSQL_PASSWORD=$MYSQL_PASSWORD |
36 | - MYSQL_DATABASE=nextcloud |
37 | - MYSQL_USER=nextcloud |
38 | - NEXTCLOUD_TRUSTED_DOMAINS=nextcloud.domain.com 192.168.1.1 |
39 | - TRUSTED_PROXIES=nextcloud.domain.com 192.168.1.1 |
40 | - OVERWRITEHOST=nextcloud.domain.com |
41 | - OVERWRITEPROTOCOL=https |
42 | depends_on: |
43 | - db |
44 | - redis |
45 | cron: |
46 | image: nextcloud:apache |
47 | restart: always |
48 | volumes: |
49 | - /volume1/docker/nextcloud/app:/var/www/html:rw |
50 | - /mnt/share/nextcloud:/var/www/html/data:rw |
51 | entrypoint: /cron.sh |
52 | depends_on: |
53 | - db |
54 | - redis |