-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
74 lines (67 loc) · 1.56 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
services:
chain:
build: .
ports:
- "9944:9944"
environment:
- CARGO_HOME=/var/www/genesis-dao/.cargo
app:
build: https://github.com/deep-ink-ventures/genesis-dao-service.git#main
command: [ "web" ]
ports:
- "8000:8000"
depends_on: &deps
- chain
- db
- cache
environment:
- APPLICATION_STAGE=development
- DATABASE_HOST=db
- REDIS_HOST=cache
- BLOCKCHAIN_URL=ws://chain:9944/
listener:
build: https://github.com/deep-ink-ventures/genesis-dao-service.git#main
command: [ "listener" ]
depends_on: *deps
environment:
- APPLICATION_STAGE=development]
- DATABASE_HOST=db
- REDIS_HOST=cache
- BLOCKCHAIN_URL=ws://chain:9944/
worker:
build: https://github.com/deep-ink-ventures/genesis-dao-service.git#main
command: [ "worker" ]
depends_on: *deps
environment:
- APPLICATION_STAGE=development
- DATABASE_HOST=db
- REDIS_HOST=cache
- BLOCKCHAIN_URL=ws://chain:9944/
db:
image: postgres:14.1-alpine
command: -p 5432
ports:
- 5433:5432
volumes:
- db:/var/lib/postgresql
environment:
- POSTGRES_DB=core
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
cache:
image: redis:5-alpine
command: --port 6379
ports:
- 6379:6379
web:
build:
context: https://github.com/deep-ink-ventures/genesis-dao-frontend.git#main
args:
ENVIRONMENT: dockerized
ports:
- 3000:3000
depends_on:
- chain
- app
volumes:
db: