-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-processor.yaml
More file actions
51 lines (48 loc) · 1.22 KB
/
Copy pathdocker-compose-processor.yaml
File metadata and controls
51 lines (48 loc) · 1.22 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
version: '3.8'
services:
nats:
image: nats:2.10
container_name: nats-dev
command: ["-js"]
ports:
- "4222:4222"
- "8222:8222"
networks:
- txloader-net
processor:
build:
context: ./txloader-flink-processor
container_name: flink-processor
environment:
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
# extra_hosts lets the container reach a classifier API running on the host
# (needed only if you switch to the --classifier http command below)
extra_hosts:
- "host.docker.internal:host-gateway"
#command:
# Default command uses keyword classifier
# - "--nats-url"
# - "nats://nats:4222"
# - "--db-url"
# - "jdbc:postgresql://db:5432/txloader"
# To use the HTTP classifier instead of keyword matching, replace `command:` above with:
command:
- "--nats-url"
- "nats://nats:4222"
- "--db-url"
- "jdbc:postgresql://db:5432/txloader"
- "--classifier"
- "http"
- "--classifier-url"
- "http://host.docker.internal:8000"
ports:
- "8081:8081"
depends_on:
- nats
networks:
- txloader-net
networks:
txloader-net:
external: true
name: txloader-net