forked from caicloud/cyclone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (51 loc) · 1.28 KB
/
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
45
46
47
48
49
50
51
52
53
54
zookeeper:
image: wurstmeister/zookeeper:3.4.6
expose:
- "2181"
kafka:
image: wurstmeister/kafka:0.10.1.0
hostname: kafkahost
links:
- zookeeper:zk
volumes:
- ./local/data/kafka_log:/data/kafka_log
environment:
- KAFKA_ADVERTISED_HOST_NAME=kafkahost
- KAFKA_ADVERTISED_PORT=9092
- KAFKA_LOG_DIRS=/data/kafka_log
ports:
- "9092:9092"
expose:
- "9092"
mongo:
image: mongo:3.0.5
# volumes:
# - ./local/data/db:/data/db
expose:
- "27017"
ports:
- "27017:27017"
command: mongod --smallfiles
cyclone-server:
image: cargo.caicloud.io/caicloud/cyclone-server:latest
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
links:
- mongo
- kafka
ports:
- "7099:7099"
- "8000:8000"
expose:
- "7099"
environment:
- DEBUG=true
- CYCLONE_SERVER=http://127.0.0.1:7099
- MONGODB_HOST=mongo:27017
- KAFKA_HOST=kafkahost:9092
- LOG_SERVER=ws://127.0.0.1:8000/ws
- REGISTRY_LOCATION=cargo.caicloud.io
- REGISTRY_USERNAME=user
- REGISTRY_PASSWORD=pwd
- WORKER_IMAGE=cargo.caicloud.io/caicloud/cyclone-worker:latest
command: /cyclone-server