forked from morsapaes/pyflink-nlp
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
56 lines (56 loc) · 1.33 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
version: '3'
services:
postgres:
build: ./postgres-image
image: postgres/postgres:11-alpine
container_name: postgres
ports:
- "5432:5432"
expose:
- "5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
volumes:
- ${PWD}/postgres-image:/docker-entrypoint-initdb.d
jobmanager:
build: .
image: pyflink/pyflink:1.11.2-scala_2.11
container_name: jobmanager
volumes:
- .:/opt/pyflink-nlp
hostname: "jobmanager"
expose:
- "6123"
ports:
- "8081:8081"
command: jobmanager
environment:
- JOB_MANAGER_RPC_ADDRESS=jobmanager
taskmanager:
image: pyflink/pyflink:1.11.2-scala_2.11
container_name: taskmanager
volumes:
- .:/opt/pyflink-nlp
expose:
- "6121"
- "6122"
depends_on:
- jobmanager
command: taskmanager
links:
- jobmanager:jobmanager
environment:
- JOB_MANAGER_RPC_ADDRESS=jobmanager
superset:
build: ./superset-image
image: superset/superset:0.37.2
container_name: superset
volumes:
- ./superset-image/db-postgres.yaml:/db-postgres.yaml
- ./superset-image/dashboard-flink-user.json:/dashboard-flink-user.json
ports:
- "8088:8088"
depends_on:
- postgres