-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (37 loc) · 904 Bytes
/
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
version: '3'
services:
spark_server:
container_name: spark_server
build:
context: .
dockerfile: ./docker/server.dockerfile
ports:
- "8080:8080"
depends_on:
- postgres_db
environment:
POSTGRES_DATABASE: shopping_cart
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: supersecret
read_model_populator:
container_name: read_model_populator
build:
context: .
dockerfile: ./docker/rmp.dockerfile
depends_on:
- spark_server
environment:
POSTGRES_DATABASE: shopping_cart
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: supersecret
restart: on-failure
postgres_db:
container_name: postgres_db
build:
context: .
dockerfile: ./docker/postgres.dockerfile
ports:
- "5432:5432"
environment:
POSTGRES_DB: shopping_cart
POSTGRES_PASSWORD: supersecret