-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (61 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
64 lines (61 loc) · 1.38 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
version: '3'
networks:
benchmark:
driver: bridge
services:
mongodb:
image: mongo
container_name: mongo-benchmark
environment:
- MONGO_INITDB_ROOT_USERNAME=benchmark
- MONGO_INITDB_ROOT_PASSWORD=benchmark
volumes:
- .docker/mongodb/data:/data/db
ports:
- '27018:27017'
networks:
- benchmark
mongo-seed:
build:
context: ./packages/mongo-seed
links:
- mongodb
networks:
- benchmark
redis:
image: redis
container_name: redis-benchmark
command: redis-server --requirepass benchmark
ports:
- '6379:6379'
networks:
- benchmark
in-process-server:
container_name: in-process-server
build:
context: ./packages/in-process-server
environment:
- API_PORT=8000
- MONGO_URI=mongodb://benchmark:benchmark@mongodb/benchmark?authSource=admin
- MAX_CACHE_SIZE=1000
- LOG_LEVEL=all
depends_on:
- mongodb
networks:
- benchmark
redis-server:
container_name: redis-server
build:
context: ./packages/redis-server
environment:
- API_PORT=8001
- MONGO_URI=mongodb://benchmark:benchmark@mongodb/benchmark?authSource=admin
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=benchmark
- LOG_LEVEL=all
depends_on:
- redis
- mongodb
networks:
- benchmark