-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-https.yaml
110 lines (98 loc) · 2.01 KB
/
docker-compose-https.yaml
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
x-minio-common: &minio-common
image: quay.io/minio/minio
command: server --console-address ":9001" http://minio{1...4}/data{1...2}
restart: always
expose:
- "9000"
- "9001"
env_file:
- "./.env"
networks:
- backend
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 5s
retries: 3
services:
minio1:
<<: *minio-common
container_name: minio1
hostname: minio1
volumes:
- data1-1:/data1
- data1-2:/data2
minio2:
<<: *minio-common
container_name: minio2
hostname: minio2
volumes:
- data2-1:/data1
- data2-2:/data2
minio3:
<<: *minio-common
container_name: minio3
hostname: minio3
volumes:
- data3-1:/data1
- data3-2:/data2
minio4:
<<: *minio-common
container_name: minio4
hostname: minio4
volumes:
- data4-1:/data1
- data4-2:/data2
nginx:
image: nginx:1.27.1-alpine
container_name: nginx
hostname: nignx
env_file:
- ./.env
restart: always
volumes:
# Nginx Conf
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf:ro
# Nginx Template
- ./nginx/templates/https-nginx.conf.template:/etc/nginx/templates/default.conf.template
# Log Files
- ./nginx/log/:/var/log/nginx/
- ./nginx/log/:/var/log/nginx/
# CA
- ./certbot/CA/:/letsencrypt:ro
ports:
- "${NGINX_HTTP_PORT}:${NGINX_HTTP_PORT}"
- "${NGINX_HTTPS_PORT}:${NGINX_HTTPS_PORT}"
- "${MINIO_HTTPS_API}:${MINIO_HTTPS_API}"
networks:
- backend
- frontend
depends_on:
- minio1
- minio2
- minio3
- minio4
networks:
frontend:
name: frontend
driver: bridge
ipam:
config:
- subnet: 10.10.1.0/24
gateway: 10.10.1.1
backend:
name: backend
driver: bridge
ipam:
config:
- subnet: 10.10.11.0/24
gateway: 10.10.11.1
volumes:
data1-1:
data1-2:
data2-1:
data2-2:
data3-1:
data3-2:
data4-1:
data4-2: