forked from clowder-framework/clowder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.example.yml
70 lines (64 loc) · 1.95 KB
/
docker-compose.override.example.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
version: '3.5'
services:
mongo:
image: mongo:3.4
ports:
- 27017:27017
rabbitmq:
ports:
- 5672:5672
# ----------------------------------------------------------------------
# DOCKER MANAGEMENT APPLICATION
# ----------------------------------------------------------------------
# Allow to see all docker containers running, restart and see log files. (optional)
portainer:
image: portainer/portainer:latest
command:
- --admin-password=${PORTAINER_PASSWORD:-}
- --host=unix:///var/run/docker.sock
restart: unless-stopped
networks:
- clowder
labels:
- "traefik.enable=true"
- "traefik.backend=portainer"
- "traefik.frontend.rule=${TRAEFIK_HOST:-}PathPrefixStrip: /portainer"
- "traefik.website.frontend.whiteList.sourceRange=${TRAEFIK_IPFILTER:-172.16.0.0/12}"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer:/data
# ----------------------------------------------------------------------
# S3 STORAGE CONTAINER
# ----------------------------------------------------------------------
# S3 storage
minio:
image: minio/minio:latest
command: server /data
restart: unless-stopped
networks:
- clowder
environment:
- MINIO_ACCESS_KEY=${S3_ACCESS_KEY:-clowder}
- MINIO_SECRET_KEY=${S3_SECRET_KEY:-catsarecute}
labels:
- "traefik.enable=true"
- "traefik.backend=minio"
- "traefik.port=9000"
- "traefik.frontend.rule=${TRAEFIK_FRONTEND_RULE:-}PathPrefix:/minio/"
volumes:
- minio-data:/data
# ----------------------------------------------------------------------
# VOLUMES FOR PERSISTENT STORAGE
# ----------------------------------------------------------------------
volumes:
portainer:
minio-data:
driver_opts:
type: none
device: '${PWD}/volumes/minio'
o: bind
mongo:
driver_opts:
type: none
device: '${PWD}/volumes/mongo'
o: bind