-
Notifications
You must be signed in to change notification settings - Fork 0
/
servers-compose.yml
49 lines (45 loc) · 978 Bytes
/
servers-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
version: "3.7"
services:
pypiserver:
image: pypiserver/pypiserver:latest
volumes:
- pypi-data:/data/packages
ports:
- "9000:8080"
networks:
- rnd
minio:
image: minio/minio:RELEASE.2020-02-07T23-28-16Z
hostname: minio
volumes:
- minio-data:/export
ports:
- "9001:9000"
networks:
# On the internal you are exposed as minio1/2/3/4 by default
rnd:
aliases:
- minio-cluster
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
deploy:
restart_policy:
delay: 10s
max_attempts: 10
window: 60s
placement:
constraints:
- node.labels.minio==true
command: server /export
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
volumes:
pypi-data:
minio-data:
networks:
rnd:
name: rnd-network