-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (60 loc) · 1.88 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (60 loc) · 1.88 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
version: '3.8'
services:
mongo:
image: mongo:8.0
container_name: mongo
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: ${ETL_TEMPLATE_MONGO_PASSWORD}
restart: unless-stopped
postgres:
image: postgres:17-alpine
container_name: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: ${ETL_TEMPLATE_POSTGRESQL_PASSWORD}
POSTGRES_DB: testdb
volumes:
- ./src/test/resources/sql:/docker-entrypoint-initdb.d:ro
restart: unless-stopped
etl-template-with-flink-jobmanager:
image: template/etl-template-with-flink
container_name: etl-template-with-flink-jobmanager
build:
context: .
dockerfile: Dockerfile
command: jobmanager
ports:
- "8081:8081"
environment:
JOB_MANAGER_RPC_ADDRESS: etl-template-with-flink-jobmanager
POSTGRESQL_URL: jdbc:postgresql://postgres:5432/testdb
POSTGRESQL_USER: admin
POSTGRESQL_PASSWORD: ${ETL_TEMPLATE_POSTGRESQL_PASSWORD}
MONGODB_URI: mongodb://admin:${ETL_TEMPLATE_MONGO_PASSWORD}@mongo:27017
MONGODB_DATABASE: local
depends_on:
- mongo
- postgres
restart: unless-stopped
etl-template-with-flink-taskmanager:
image: template/etl-template-with-flink
container_name: etl-template-with-flink-taskmanager
build:
context: .
dockerfile: Dockerfile
command: taskmanager
environment:
JOB_MANAGER_RPC_ADDRESS: etl-template-with-flink-jobmanager
POSTGRESQL_URL: jdbc:postgresql://postgres:5432/testdb
POSTGRESQL_USER: admin
POSTGRESQL_PASSWORD: ${ETL_TEMPLATE_POSTGRESQL_PASSWORD}
MONGODB_URI: mongodb://admin:${ETL_TEMPLATE_POSTGRESQL_PASSWORD}@mongo:27017
MONGODB_DATABASE: local
depends_on:
- etl-template-with-flink-jobmanager
restart: unless-stopped