-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yml
42 lines (34 loc) · 897 Bytes
/
Taskfile.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
version: '2'
tasks:
db:
cmds:
- docker-compose up -d read-model-db eventstore redis
- sleep 5s # wait for 5 seconds to give the db enough time to start up
- docker-compose up -d hasura
cmd-api:
dir: api
cmds:
- DB_CONNECTION_STRING="postgres://postgres:secret@localhost:5432/postgres" PORT="8080" stack run
read-model:
dir: read-model
cmds:
- READ_MODEL="postgres://postgres:secret@localhost:15432/postgres" REDIS_URL="redis://localhost:6379" stack run
ui:
dir: ui
cmds:
- task start-local
pub:
dir: publisher
cmds:
- task start-local
up:
cmds:
- task: db
- docker-compose up --build --force-recreate -d query-api cmd-api publisher
- docker-compose up --build --force-recreate -d ui
down:
cmds:
- docker-compose down
ps:
cmds:
- docker-compose ps