-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
133 lines (115 loc) · 3.02 KB
/
docker-compose.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
version: '3'
# docker-compose exec nodered npm install node-red-node-sqlite node-red-contrib-postgres
# access 172.18.0.100:8000
networks:
sdosnet:
driver: bridge
ipam:
config:
- subnet: 172.18.0.0/24
services:
sdos:
build: ./docker-sdos
image: mcm/sdos
environment:
- MY_ENDPOINT_HOST=172.18.0.11
- SWIFT_AUTH_VERSION=${SWIFT_AUTH_VERSION:-1.0}
- SWIFT_AUTH_HOST=${SWIFT_AUTH_HOST:-172.18.0.22}
- SWIFT_AUTH_PORT=${SWIFT_AUTH_PORT:-8080}
- SWIFT_STORE_HOST=${SWIFT_STORE_HOST:-172.18.0.22}
- SWIFT_STORE_PORT=${SWIFT_STORE_PORT:-8080}
ports:
- "3000:3000"
networks:
sdosnet:
ipv4_address: 172.18.0.11
bluebox:
build: ./docker-bluebox
image: mcm/bluebox
environment:
- MY_ENDPOINT_HOST=${PUBLIC_HOST:-localhost}
- SWIFT_AUTH_VERSION=${SWIFT_AUTH_VERSION:-1.0}
- SWIFT_HOST=172.18.0.11
- SWIFT_PORT=3000
- POSTGRES_HOST=172.18.0.44
- NODERED_HOST=172.18.0.55
ports:
- "8000:8000"
networks:
sdosnet:
ipv4_address: 172.18.0.100
extractor:
build: ./docker-extractor
image: mcm/extractor
environment:
- TENANT_NAME=${TENANT_NAME:-mcmdemo}
- SWIFT_HOST=172.18.0.11
- SWIFT_PORT=3000
- KAFKA_HOST=172.18.0.33
- POSTGRES_HOST=172.18.0.44
networks:
- sdosnet
####### swift storage backend
swift:
build: ./docker-swift
image: mcm/swift
volumes:
- ${SWIFT_STORE_PATH:-/tmp/mcm_swift}:/srv
ports:
- "8080:8080"
networks:
sdosnet:
ipv4_address: 172.18.0.22
####### ceph storage backend
# to later configure ceph:
# docker-compose exec ceph radosgw-admin subuser create --uid=sdos --subuser=sdos:user --access=full
# docker-compose exec ceph radosgw-admin key create --subuser=sdos:user --key-type=swift --gen-secret
# ceph:
# image: ceph/demo
# #volumes:
# #- /mnt________:/var/lib/ceph
# #- /etc/ceph:/etc/ceph
# environment:
# - MON_IP=172.18.0.22
# - CEPH_PUBLIC_NETWORK=172.18.0.0/24
# - CEPH_DEMO_UID=sdos
# - CEPH_DEMO_ACCESS_KEY="passw0rd"
# - CEPH_DEMO_SECRET_KEY="passw0rd"
# networks:
# sdosnet:
# ipv4_address: 172.18.0.22
####### external images for db/messaging/nodered
postgres:
image: postgres
environment:
- POSTGRES_PASSWORD=passw0rd
- POSTGRES_DB=mcm_metadata_${TENANT_NAME:-mcmdemo}
ports:
- "5432:5432"
networks:
sdosnet:
ipv4_address: 172.18.0.44
kafka:
image: spotify/kafka
environment:
- ADVERTISED_HOST=172.18.0.33
- ADVERTISED_PORT=9092
ports:
- "9092:9092"
- "2181:2181"
networks:
sdosnet:
ipv4_address: 172.18.0.33
msg_spooler:
build: https://github.com/sdos/kafka-websocket.git
ports:
- "31780:7080"
networks:
- sdosnet
nodered:
build: https://github.com/sdos/node-red-docker.git#:latest
ports:
- "31880:1880"
networks:
sdosnet:
ipv4_address: 172.18.0.55