-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
111 lines (102 loc) · 2.73 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
102
103
104
105
106
107
108
109
110
111
services:
subspace:
image: subspace:local-main
command: bash -c "/subspace/extra/insert-authority-keys.sh; /subspace/extra/run-node.sh"
environment:
SUBSPACE_BASE_PATH: /subspace/node-data
SUBSPACE_CHAIN_SPEC: /subspace/specs/local.json
SUBSPACE_ACCOUNT: alice
PORT: 30341
RPC_PORT: 9951
ports:
- 9951:9951
volumes:
- subspace-data:/subspace/node-data
- ./data/chain-specs:/subspace/specs:ro
- ./docker/subspace-extra:/subspace/extra:ro
postgres:
image: postgres:16-alpine
ports:
- 1337:1337
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=postgres
- POSTGRES_DB=torus-ts-db
# torus-cache:
# build:
# context: .
# dockerfile: docker/Dockerfile
# args:
# - APP_NAME=torus-cache
# environment:
# - NEXT_PUBLIC_TORUS_RPC_URL=${NEXT_PUBLIC_TORUS_RPC_URL}
# - PORT=8000
# ports:
# - 3011:8000
torus-worker:
build:
context: .
dockerfile: docker/Dockerfile
args:
- APP_NAME=torus-worker
environment:
- NEXT_PUBLIC_TORUS_RPC_URL=${NEXT_PUBLIC_TORUS_RPC_URL}
- POSTGRES_URL=postgres://postgres:password@postgres:1337/torus-ts-db
- PORT=8000
ports:
- 3012:8000
torus-governance:
build:
context: .
dockerfile: docker/Dockerfile
args:
APP_NAME: torus-governance
environment:
- NEXT_PUBLIC_TORUS_RPC_URL=ws://subspace:9951
- NEXT_PUBLIC_TORUS_CACHE_URL=http://FIXME
- POSTGRES_URL=postgres://postgres:password@postgres:1337/torus-ts-db
- JWT_SECRET=12345678
- PINATA_JWT=${PINATA_JWT}
ports:
- 3021:8000
torus-page:
build:
context: .
dockerfile: docker/Dockerfile
args:
APP_NAME: torus-page
ports:
- 3022:8000
torus-allocator:
build:
context: .
dockerfile: docker/Dockerfile
args:
APP_NAME: torus-allocator
environment:
- NEXT_PUBLIC_TORUS_RPC_URL=ws://subspace:9951
- NEXT_PUBLIC_TORUS_CACHE_URL=http://FIXME
- POSTGRES_URL=postgres://postgres:password@postgres:1337/torus-ts-db
- JWT_SECRET=12345678
- PINATA_JWT=${PINATA_JWT}
ports:
- 3023:8000
torus-wallet:
build:
context: .
dockerfile: docker/Dockerfile
args:
APP_NAME: torus-wallet
environment:
- NEXT_PUBLIC_TORUS_RPC_URL=ws://subspace:9951
- NEXT_PUBLIC_TORUS_CACHE_URL=http://FIXME
- POSTGRES_URL=postgres://postgres:password@postgres:1337/torus-ts-db
- JWT_SECRET=12345678
ports:
- 3024:8000
# TODO: Traefik for local Docker services
volumes:
subspace-data:
db-data: