-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 1021 Bytes
/
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
55
56
57
58
59
---
version: "3.9"
services:
nextcloud:
image: nextcloud:v3
container_name: nextcloud_app
ports:
- "8183:80"
restart: always
volumes:
- type: volume
source: nextcloud_data
target: /var/www/nextcloud/data
user: www-data
networks:
- nexcloud_net
- mysql_net
- redis_net
depends_on:
- mysql
- redis
mysql:
image: mariadb:10.6
container_name: nextcloud_database
env_file: .env
volumes:
- type: volume
source: db
target: /var/lib/mysql
networks:
- mysql_net
redis:
image: redis
container_name: nextcloud_cache
networks:
- redis_net
networks:
nexcloud_net:
ipam:
driver: default
config:
- subnet: "172.29.0.0/30"
mysql_net:
ipam:
driver: default
config:
- subnet: "172.27.0.0/29"
redis_net:
ipam:
driver: default
config:
- subnet: "192.168.0.0/28"
volumes:
nextcloud_data:
db: