-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (64 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
71 lines (64 loc) · 1.28 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
version: '1.0'
services:
redis:
image: redis:latest
container_name: code_blaster_3000_redis
ports:
- "6379:6379"
networks:
- app-network
mongo:
image: mongo:latest
container_name: code_blaster_3000_mongo
ports:
- "27017:27017"
volumes:
- code_blaster_3000:/data/db
networks:
- app-network
server:
build:
context: .
dockerfile: ./server/Dockerfile
container_name: code_blaster_3000_server
ports:
- "3000:3000"
networks:
- app-network
volumes:
- ./server:/app
- ./packages:/app/packages
depends_on:
- redis
- mongo
worker:
build:
context: .
dockerfile: ./worker/Dockerfile
container_name: code_blaster_3000_worker
networks:
- app-network
depends_on:
- redis
- mongo
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./worker:/app
- ./packages:/app/packages
privileged: true
k6:
image: grafana/k6
container_name: code_blaster_3000_k6
networks:
- app-network
volumes:
- ./loadtests:/scripts
command: ["run", "/scripts/test.js"]
depends_on:
- server
- worker
networks:
app-network:
driver: bridge
volumes:
code_blaster_3000: