-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
45 lines (42 loc) · 1.06 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
version: "3.7"
services:
nextcloud:
image: linuxserver/nextcloud:latest
container_name: nextcloud
networks:
- nextcloudnet
environment:
- PUID=1002 # dockeruser id
- PGID=100 # dockeruser group
- TZ=Europe/Zurich
volumes:
- /share/Docker/nextcloud/config:/config
- /share/Docker/nextcloud/data:/data
ports:
- 9443:443
restart: unless-stopped
depends_on:
- db
db:
image: linuxserver/mariadb:latest
container_name: nextcloud_db
networks:
- nextcloudnet
environment:
- PUID=1002
- PGID=100
- MYSQL_ROOT_PASSWORD=db_root-password # replace with own password
- TZ=Europe/Zurich
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextclouduser
- MYSQL_PASSWORD=db_user_password # replace with own password
volumes:
- /share/Docker/nextcloud/config_db:/config
restart: unless-stopped
networks:
nextcloudnet:
driver: bridge
ipam:
config:
- subnet: 10.0.8.0/24
gateway: 10.0.8.1