-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
78 lines (77 loc) · 1.9 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
version: '3'
services:
ui:
build:
context: ./ui
dockerfile: ./Dockerfile
args:
ELM_APP_GRAPHQL_URI: localhost:8081/v1/graphql
ELM_APP_CMD_URI: localhost:8080
ports:
- 3000:80
cmd-api:
build:
context: ./api
dockerfile: ./Dockerfile
ports:
- 8080:8080
environment:
DB_CONNECTION_STRING: postgres://postgres:secret@eventstore:5432/postgres
PORT: "8080"
query-api:
build:
context: ./read-model
dockerfile: ./Dockerfile
environment:
REDIS_URL: redis://redis:6379
READ_MODEL: postgres://postgres:secret@read-model:5432/postgres
eventstore:
build: ./api/docker/eventstore
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_DB: postgres
POSTGRES_PASSWORD: secret
read-model-db:
build: ./read-model/docker/read-model
ports:
- 15432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_DB: postgres
POSTGRES_PASSWORD: secret
pg-admin:
image: dpage/pgadmin4
ports:
- "80:80"
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: secret
publisher:
build:
context: ./publisher
dockerfile: ./Dockerfile
args:
REDIS_URL: redis://redis:6379
DB_HOST: eventstore
DB_NAME: postgres
DB_USER: postgres
DB_PASS: secret
hasura:
image: hasura/graphql-engine:v1.0.0-rc.1.cli-migrations
ports:
- 8081:8080
volumes:
- ./read-model/hasura:/hasura-migrations
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:secret@read-model-db:5432/postgres
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: anonymous
HASURA_GRAPHQL_ADMIN_SECRET: secret
depends_on:
- read-model-db
redis:
image: redis:5.0.7
ports:
- 6379:6379