-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
86 lines (83 loc) · 2 KB
/
docker-compose.yml
File metadata and controls
86 lines (83 loc) · 2 KB
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
version: '3.3'
services:
jupyter:
container_name: jupyter_service_av1
build:
context: .
ports:
- "8888:8888"
volumes:
- ./notebooks:/home/jovyan/work
- ./data:/home/jovyan/data
- ./config:/home/jovyan/.jupyter
networks:
- mybridge
mongo:
image: mongo:4.4-bionic
container_name: mongo_service_av1
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: mongo
ports:
- "27017:27017"
volumes:
- dbdata:/data/db
- ./db-seed:/db-seed
- ./datasets:/datasets
networks:
- mybridge
mongo-express:
image: mongo-express:latest
container_name: mongo_express_service_av1
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: admin
ME_CONFIG_MONGODB_ADMINPASSWORD: pass
ME_CONFIG_MONGODB_URL: mongodb://root:mongo@mongo:27017/
ports:
- "8081:8081"
depends_on:
- mongo
volumes:
- ./wait-for-it.sh:/wait-for-it.sh
command: ["/wait-for-it.sh", "mongo:27017", "--", "npm", "start"]
networks:
- mybridge
cassandra:
image: cassandra:latest
container_name: cassandra-container_av1
ports:
- "9042:9042"
volumes:
- cassandra-data:/var/lib/cassandra
- ./datasets:/datasets
networks:
- mybridge
cassandra-web:
image: ipushc/cassandra-web
container_name: cassandra-web-container_av1
ports:
- "3000:80"
volumes:
- ./wait-for-it.sh:/wait-for-it.sh
environment:
- HOST_PORT=:80
- READ_ONLY=false
- CASSANDRA_HOST=cassandra
- CASSANDRA_PORT=9042
- CASSANDRA_USERNAME=cassandra
- CASSANDRA_PASSWORD=cassandra
command: ["/wait-for-it.sh", "cassandra:9042", "--", "./service", "-c", "config.yaml"] # Supondo que o config.yaml esteja correto e disponível
depends_on:
- cassandra
networks:
- mybridge
networks:
mybridge:
external:
name: mybridge
volumes:
notebooks:
data:
config:
dbdata:
cassandra-data: