-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathdocker-compose.dev.yml
39 lines (37 loc) · 1.01 KB
/
docker-compose.dev.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
# This hosts both APIs locally in parallel
# It mounts the codebase within the container and runs the APIs
# with hot reload enabled.
version: "3.8"
services:
mediator:
build:
context: .
target: dev
volumes:
- "./app:/app/app"
ports:
- 8000:8000
environment:
API_MODE: "mediator"
QUEUE_MODE: "remote"
STORAGE_MODE: "mongo"
PROJECT_NAME: "ElectionGuard Mediator API"
PORT: 8000
MESSAGEQUEUE_URI: "amqp://guest:guest@electionguard-message-queue:5672"
MONGODB_URI: "mongodb://root:example@electionguard-db:27017"
guardian:
build:
context: .
target: dev
volumes:
- "./app:/app/app"
ports:
- 8001:8001
environment:
API_MODE: "guardian"
QUEUE_MODE: "remote"
STORAGE_MODE: "mongo"
PROJECT_NAME: "ElectionGuard Guardian API"
PORT: 8001
MESSAGEQUEUE_URI: "amqp://guest:guest@electionguard-message-queue:5672"
MONGODB_URI: "mongodb://root:example@electionguard-db:27017"