-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
101 lines (95 loc) · 2.4 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
services:
redis:
image: 'bitnami/redis:latest'
restart: unless-stopped
ports:
- '6379:6379'
environment:
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- redis-data:/data
mesh:
image: ${CHAIN_IMAGE:-polymeshassociation/polymesh:7.1.0-testnet-debian}
init: true # Faster shutdown when enabled
restart: unless-stopped
ports: # expose ports to localhost
- '9944:9944' # ws://
- '9933:9933' # http://
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
- './chain-entry.sh:/chain-entry.sh'
entrypoint: '/chain-entry.sh'
command: ['--alice --chain dev']
# Note this container must be restarted to detect newly created queues
bullboard:
container_name: bullboard
image: deadly0/bull-board # Repo: https://github.com/felixmosh/bull-board
profiles:
- auxillary
restart: unless-stopped
ports:
- 3334:3000
extra_hosts:
- 'host.docker.internal:host-gateway'
environment:
REDIS_HOST: host.docker.internal
vault: # transit engine + key needs to be created before signing
image: vault
ports:
- 8200:8200
profiles:
- auxillary
entrypoint: vault server -dev -dev-listen-address="0.0.0.0:8200" -dev-root-token-id="root"
nginx: # allows a single domain to serve both the front and back ends
container_name: reverse-proxy
image: nginx
profiles:
- auxillary
restart: always
ports:
- 7777:80
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
- './nginx.conf:/etc/nginx/nginx.conf:ro'
server:
profiles:
- app
build:
context: .
cache_from:
- mesh-cdd-builder
dockerfile: ./docker/server.Dockerfile
image: cdd-backend
ports:
- 3333:3333
environment:
NODE_ENV: 'dev'
APP_PORT: 3333
APP_ROUTE_PREFIX: 'api'
MESH_NODE_URL: ws://mesh:9944
NETKI_REFRESH_TOKEN: ${NETKI_REFRESH_TOKEN}
REDIS_HOST: redis
restart: unless-stopped
depends_on:
- mesh
worker:
profiles:
- app
build:
context: .
cache_from:
- mesh-cdd-builder
dockerfile: ./docker/worker.Dockerfile
image: cdd-worker
environment:
NODE_ENV: 'dev'
MESH_NODE_URL: ws://mesh:9944
REDIS_HOST: redis
MESH_MNEMONIC: //Alice
restart: unless-stopped
depends_on:
- mesh
volumes:
redis-data: