-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
163 lines (151 loc) · 4.48 KB
/
docker-compose.yml
File metadata and controls
163 lines (151 loc) · 4.48 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
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:18-alpine
ports:
- 5432:5432
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=torus-ts-db
- POSTGRES_HOST_AUTH_METHOD=md5
pgadmin4:
image: dpage/pgadmin4
container_name: pgadmin4
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL: postgres@example.org
PGADMIN_DEFAULT_PASSWORD: postgres
ports:
- "5050:80"
# 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:postgres@postgres:5432/torus-ts-db
- PREDICTION_APP_MNEMONIC=${PREDICTION_APP_MNEMONIC}
- 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:postgres@postgres:5432/torus-ts-db
- JWT_SECRET=12345678
- PINATA_JWT=${PINATA_JWT}
- PREDICTION_APP_MNEMONIC=${PREDICTION_APP_MNEMONIC}
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:postgres@postgres:5432/torus-ts-db
- JWT_SECRET=12345678
- PINATA_JWT=${PINATA_JWT}
- PREDICTION_APP_MNEMONIC=${PREDICTION_APP_MNEMONIC}
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:postgres@postgres:5432/torus-ts-db
- JWT_SECRET=12345678
ports:
- 3024:8000
prediction-swarm:
build:
context: .
dockerfile: docker/Dockerfile
args:
APP_NAME: prediction-swarm
environment:
- POSTGRES_URL=${POSTGRES_URL}
- JWT_SECRET=${JWT_SECRET}
- NEXT_PUBLIC_TORUS_RPC_URL=${NEXT_PUBLIC_TORUS_RPC_URL}
- NEXT_PUBLIC_TORUS_ALLOCATOR_ADDRESS=${NEXT_PUBLIC_TORUS_ALLOCATOR_ADDRESS}
- NEXT_PUBLIC_AUTH_ORIGIN=${AUTH_ORIGIN}
- NEXT_PUBLIC_PREDICTION_APP_ADDRESS=${NEXT_PUBLIC_PREDICTION_APP_ADDRESS}
- PERMISSION_GRANTOR_ADDRESS=${PERMISSION_GRANTOR_ADDRESS}
- PREDICTION_APP_MNEMONIC=${PREDICTION_APP_MNEMONIC}
- TWITTERAPI_IO_KEY=${TWITTERAPI_IO_KEY}
- PORT=3004
ports:
- "3004:3004"
swarm-filter:
build:
context: .
dockerfile: docker/Dockerfile
args:
APP_NAME: swarm-filter
environment:
- POSTGRES_URL=${POSTGRES_URL}
- API_URL=http://prediction-swarm:3004
- AUTH_ORIGIN=${AUTH_ORIGIN}
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY}
- PREDICTION_CHECK_MODEL=${PREDICTION_CHECK_MODEL}
- TOPIC_CLASSIFICATION_MODEL=${TOPIC_CLASSIFICATION_MODEL}
- PREDICTION_EXTRACTION_MODEL=${PREDICTION_EXTRACTION_MODEL}
- FILTER_AGENT_MNEMONIC=${FILTER_AGENT_MNEMONIC}
- BATCH_SIZE=${BATCH_SIZE:-48}
command: pnpm --filter swarm-filter dev
# TODO: Traefik for local Docker services
volumes:
subspace-data:
db-data: