-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
92 lines (86 loc) · 1.75 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
version: '3'
volumes:
nextcloud:
redis:
networks:
front-tier:
external: true
back-tier:
external: true
secrets:
nextcloud_admin_password:
file: ./secrets/nextcloud_admin_password.txt
nextcloud_admin_user:
file: ./secrets/nextcloud_admin_user.txt
postgres_db:
file: ./secrets/postgres_db.txt
postgres_password:
file: ./secrets/postgres_password.txt
postgres_user:
file: ./secrets/postgres_user.txt
redis_host_password:
file: ./secrets/redis_host_password.txt
services:
postgres:
image: arm64v8/postgres:14-alpine
container_name: postgres
hostname: postgres
restart: always
userns_mode: "host"
env_file:
- .env_postgres
volumes:
- /media/disk2/postgres:/var/lib/postgresql/data:rw
networks:
- back-tier
secrets:
- postgres_db
- postgres_password
- postgres_user
redis:
image: redis:7.0.5-alpine
container_name: redis
hostname: redis
restart: always
command: [
"sh", "-c",
'
docker-entrypoint.sh
--requirepass "$$(cat $$REDIS_PASSWORD_FILE)"
'
]
env_file:
- .env_redis
volumes:
- redis:/data
networks:
- back-tier
secrets:
- redis_host_password
nextcloud:
image: arm64v8/nextcloud:25.0.1-apache
container_name: nextcloud
hostname: nextcloud
restart: always
env_file:
- .env_nextcloud
expose:
- 80
links:
- postgres
depends_on:
- postgres
- redis
networks:
- front-tier
- back-tier
volumes:
- nextcloud:/var/www/html
secrets:
- nextcloud_admin_password
- nextcloud_admin_user
- postgres_db
- postgres_password
- postgres_user
- redis_host_password