-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.mpc.yml
172 lines (164 loc) · 4.79 KB
/
docker-compose.mpc.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
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
164
165
166
167
168
169
170
171
172
name: 'narval'
services:
postgres:
image: postgres:16-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5432:5432'
networks:
- armory_stack
volumes:
- ./.data/psql:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 5s
timeout: 5s
retries: 5
redis:
image: 'bitnami/redis:7.0'
ports:
- '6379:6379'
expose:
- '6379'
networks:
- armory_stack
environment:
ALLOW_EMPTY_PASSWORD: 'true'
logging:
driver: none
volumes:
- ./.data/redis:/data
armory:
image: armory/local:latest
build:
context: ./
dockerfile: local.dockerfile
container_name: armory
command: ['/bin/bash', '-c', 'make armory/db/migrate/deploy && make armory/start/dev']
ports:
- '3005:3010'
networks:
- armory_stack
environment:
- PORT=3010
- APP_DATABASE_URL=postgresql://postgres:postgres@postgres:5432/armory?schema=public
- REDIS_HOST=redis
- MANAGED_DATASTORE_BASE_URL=http://armory:3010/v1/data
- POLICY_ENGINE_URLS=http://policy_engine_0:3010,http://policy_engine_1:3010,http://policy_engine_2:3010
- POLICY_ENGINE_ADMIN_API_KEYS=engine-admin-api-key,engine-admin-api-key,engine-admin-api-key
volumes:
- ./packages:/app/packages
- ./apps:/app/apps
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
policy_engine_0:
image: armory/local:latest
build:
context: ./
dockerfile: local.dockerfile
container_name: policy-engine-0
command: ['/bin/bash', '-c', 'make policy-engine/db/migrate/deploy && make policy-engine/start/dev']
ports:
- '3020:3010'
networks:
- armory_stack
environment:
- APP_DATABASE_URL=postgresql://postgres:postgres@postgres:5432/engine-0?schema=public
- SIGNING_PROTOCOL=mpc
- TSM_URL=http://host.docker.internal:8500
- TSM_API_KEY=apikey0
- TSM_PLAYER_COUNT=3
- ADMIN_API_KEY=dde1fba05d6b0b1a40f2cd9f480f6dcc37a6980bcff3db54377a46b056dc472c # engine-admin-api-key
volumes:
- ./packages:/app/packages
- ./apps:/app/apps
depends_on:
postgres:
condition: service_healthy
armory:
condition: service_started
policy_engine_1:
image: armory/local:latest
build:
context: ./
dockerfile: local.dockerfile
container_name: policy-engine-1
command: ['/bin/bash', '-c', 'make policy-engine/db/migrate/deploy && make policy-engine/start/dev']
ports:
- '3021:3010'
networks:
- armory_stack
environment:
- APP_DATABASE_URL=postgresql://postgres:postgres@postgres:5432/engine-1?schema=public
- SIGNING_PROTOCOL=mpc
- TSM_URL=http://host.docker.internal:8501
- TSM_API_KEY=apikey1
- TSM_PLAYER_COUNT=3
- ADMIN_API_KEY=dde1fba05d6b0b1a40f2cd9f480f6dcc37a6980bcff3db54377a46b056dc472c # engine-admin-api-key
volumes:
- ./packages:/app/packages
- ./apps:/app/apps
depends_on:
postgres:
condition: service_healthy
armory:
condition: service_started
policy_engine_2:
image: armory/local:latest
build:
context: ./
dockerfile: local.dockerfile
container_name: policy-engine-2
command: ['/bin/bash', '-c', 'make policy-engine/db/migrate/deploy && make policy-engine/start/dev']
ports:
- '3022:3010'
networks:
- armory_stack
environment:
- APP_DATABASE_URL=postgresql://postgres:postgres@postgres:5432/engine-2?schema=public
- SIGNING_PROTOCOL=mpc
- TSM_URL=http://host.docker.internal:8502
- TSM_API_KEY=apikey2
- TSM_PLAYER_COUNT=3
- ADMIN_API_KEY=dde1fba05d6b0b1a40f2cd9f480f6dcc37a6980bcff3db54377a46b056dc472c # engine-admin-api-key
volumes:
- ./packages:/app/packages
- ./apps:/app/apps
depends_on:
postgres:
condition: service_healthy
armory:
condition: service_started
vault:
image: armory/local:latest
build:
context: ./
dockerfile: local.dockerfile
container_name: vault
command: ['/bin/bash', '-c', 'make vault/db/migrate/deploy && make vault/start/dev']
ports:
- '3011:3010'
networks:
- armory_stack
environment:
- PORT=3010
- APP_DATABASE_URL=postgresql://postgres:postgres@postgres:5432/vault?schema=public
- ADMIN_API_KEY=d4a6b4c1cb71dbdb68a1dd429ad737369f74b9e264b9dfa639258753987caaad # vault-admin-api-key
volumes:
- ./packages:/app/packages
- ./apps:/app/apps
depends_on:
postgres:
condition: service_healthy
volumes:
postgres_data:
driver: local
redis_data:
driver: local
networks:
armory_stack: