gistfile1.txt
· 1.0 KiB · Text
Ham
version: '3'
services:
mariadb:
container_name: mariadbnextcloud
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-read-only-compressed=OFF
restart: always
volumes:
- /volume1/docker/nextcloudatabase:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=xxxxxxxxxxxxxxxxxxx
- MYSQL_PASSWORD=xxxxxxxxxxxxxxxxxxx@@ddd
- MYSQL_DATABASE=nextcloudatabaseuser
- MYSQL_USER=nextclouduserdatabase
nextcloud:
container_name: nextcloud
ports:
- 18000:80
depends_on:
- mariadb
environment:
- PUID=1027
- PGID=100
- TZ=Europe/Madrid
volumes:
- /volume1/docker/nextcloud/html:/var/www/html
- /volume1/docker/nextcloud/custom_apps:/var/www/html/custom_apps
- /volume1/docker/nextcloud/config:/var/www/html/config
- /volume1/docker/nextcloud/data:/var/www/html/data
- /volume1/docker/nextcloud/themes:/var/www/html/themes/
image: nextcloud
restart: always
volumes:
mariadb: # nextcloud
1 | version: '3' |
2 | |
3 | services: |
4 | |
5 | mariadb: |
6 | container_name: mariadbnextcloud |
7 | image: mariadb |
8 | command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-read-only-compressed=OFF |
9 | restart: always |
10 | volumes: |
11 | - /volume1/docker/nextcloudatabase:/var/lib/mysql |
12 | environment: |
13 | - MYSQL_ROOT_PASSWORD=xxxxxxxxxxxxxxxxxxx |
14 | - MYSQL_PASSWORD=xxxxxxxxxxxxxxxxxxx@@ddd |
15 | - MYSQL_DATABASE=nextcloudatabaseuser |
16 | - MYSQL_USER=nextclouduserdatabase |
17 | |
18 | nextcloud: |
19 | container_name: nextcloud |
20 | ports: |
21 | - 18000:80 |
22 | depends_on: |
23 | - mariadb |
24 | environment: |
25 | - PUID=1027 |
26 | - PGID=100 |
27 | - TZ=Europe/Madrid |
28 | volumes: |
29 | - /volume1/docker/nextcloud/html:/var/www/html |
30 | - /volume1/docker/nextcloud/custom_apps:/var/www/html/custom_apps |
31 | - /volume1/docker/nextcloud/config:/var/www/html/config |
32 | - /volume1/docker/nextcloud/data:/var/www/html/data |
33 | - /volume1/docker/nextcloud/themes:/var/www/html/themes/ |
34 | image: nextcloud |
35 | restart: always |
36 | |
37 | volumes: |
38 | mariadb: # nextcloud |