-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (51 loc) · 1.27 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '2'
services:
db:
image: linuxserver/mariadb:110.3.18mariabionic-ls37
container_name: mariadb
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD= # make sure to set your password here
- TZ=Europe/Berlin # change for your time zone
- MYSQL_DATABASE=ncdb
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=xxxx
volumes:
- /path/to/data:/config
ports:
- 3306:3306
restart: unless-stopped
cache:
image: redis:alpine
container_name: redis
ports:
- 6379:6379
volumes:
- /path/to/data:/data
entrypoint: redis-server --appendonly yes
restart: always
app:
image: linuxserver/nextcloud
container_name: nextcloud
restart: always
ports:
- 8080:80
- 443:443
links:
- db
- cache
volumes:
- /path/to/data:/data
- /path/to/appdata:/config
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Berlin
- MYSQL_PASSWORD= # make sure to set your password here
- MYSQL_DATABASE=ncdb
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
- REDIS_HOST=cache
- NEXTCLOUD_ADMIN_USER= # make sure to set your user here
- NEXTCLOUD_ADMIN_PASSWORD= # make sure to set your password here