-
Notifications
You must be signed in to change notification settings - Fork 307
/
Copy pathdocker-compose.yml
180 lines (168 loc) · 4.6 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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
version: "3.7"
services:
agile:
container_name: agile
hostname: agile
labels:
description: Agile Data Science 2.0
name: agile
tty: true
image: rjurney/agile_data_science:latest
restart: on-failure
user: root
environment:
JUPYTER_ENABLE_LAB: "yes"
GRANT_SUDO: "yes"
JUPYTER_ALLOW_INSECURE_WRITES: "true"
depends_on:
- elastic
- mongo
- mongo-express
ports:
- "8888:8888"
- "5000:5000"
volumes:
- ./:/home/jovyan
networks:
- agile_net
elastic:
container_name: elastic
hostname: elastic
labels:
description: Agile Data Science 2.0 Elastic
name: elastic
tty: True
image: docker.elastic.co/elasticsearch/elasticsearch:7.14.2
restart: always
environment:
cluster.name: "es-docker"
discovery.type: single-node
node.name: "elastic"
ES_JAVA_OPTS: "-Xms1024m -Xmx1024m"
ports:
- "9200:9200"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elastic_data:/usr/share/elasticsearch/data
- ./logs:/usr/share/elasticsearch/logs
networks:
- agile_net
mongo:
container_name: mongo
hostname: mongo
labels:
description: Agile Data Science 2.0 MongoDB
name: mongo
image: mongo:5.0.3
restart: always
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
networks:
- agile_net
mongo-express:
container_name: mongo-express
hostname: mongo-express
labels:
description: Agile Data Science 2.0 Mongo Express
name: mongo-express
image: mongo-express:0.54.0
depends_on:
- mongo
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_URL: mongodb://mongo:27017/
networks:
- agile_net
zookeeper:
container_name: zookeeper
hostname: zookeeper
labels:
description: Agile Data Science 2.0 ZooKeeper
name: zookeeper
image: wurstmeister/zookeeper
ports:
- "2181:2181"
networks:
- agile_net
kafka:
container_name: kafka
hostname: kafka
labels:
description: Agile Data Science 2.0 Kafka
name: kafka
image: wurstmeister/kafka:2.12-2.0.1
ports:
- "9092:9092"
environment:
DOCKER_API_VERSION: 1.22
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
networks:
- agile_net
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# postgres:
# image: postgres
# environment:
# - POSTGRES_USER=airflow
# - POSTGRES_PASSWORD=airflow
# - POSTGRES_DB=airflow
# networks:
# - airflow_net
# scheduler:
# container_name: scheduler
# hostname: scheduler
# labels:
# description: Agile Data Science 2.0 Airflow 1.10.15 Scheduler
# name: scheduler
# image: apache/airflow:1.10.15
# command: init && scheduler
# restart: on-failure
# depends_on:
# - postgres
# env_file:
# - airflow.env
# volumes:
# - ./dags:/opt/airflow/dags
# - ./logs:/opt/airflow/logs
# networks:
# - airflow_net
# webserver:
# container_name: webserver
# hostname: webserver
# labels:
# description: Agile Data Science 2.0 Airflow 1.10.15 Webserver
# name: webserver
# image: apache/airflow:1.10.15
# command: webserver
# restart: on-failure
# depends_on:
# - postgres
# - scheduler
# env_file:
# - airflow.env
# volumes:
# - ./dags:/opt/airflow/dags
# - ./logs:/opt/airflow/logs
# - ./scripts:/opt/airflow/scripts
# ports:
# - "8080:8080"
# networks:
# - airflow_net
volumes:
elastic_data:
mongo_data:
networks:
agile_net:
name: agile_net
driver: bridge
# airflow_net:
# name: airflow_net
# driver: bridge