-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (42 loc) · 998 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
---
# https://github.com/minio/minio/tree/master/docs/orchestration/docker-compose
version : '3'
services:
minio:
image: quay.io/minio/minio:${MINIO_IMAGE_VERSION}
container_name: minio
restart: unless-stopped
command: server --console-address ":9090" /data
env_file: ./.env
healthcheck:
test: [CMD, curl, -f, http://localhost:9001/minio/health/live]
interval: 30s
timeout: 20s
retries: 3
volumes:
- /srv/minio:/data
ports:
- ${MINIO_SERVER_PORT}:9001
- ${MINIO_CONSOLE_PORT}:9090
redis:
image: redis:alpine
ports:
- "6379"
networks:
- backend
deploy:
replicas: 2
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
db:
image: postgres:9.4
volumes:
- db-data:/var/lib/postgresql/data
networks:
- backend
deploy:
placement:
constraints: [ node.role == manager ]