-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (62 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
68 lines (62 loc) · 1.19 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
services:
redis:
image: redis:latest
container_name: code_crusher_redis
ports:
- "${REDIS_PORT}:6379"
networks:
- app-network
mongo:
image: mongo:latest
container_name: code_crusher_mongo
ports:
- "${MONGO_PORT}:27017"
volumes:
- code_crusher:/data/db
networks:
- app-network
server:
build:
context: .
dockerfile: ./server/Dockerfile
container_name: code_crusher_server
env_file:
- ./.env
ports:
- "${PORT}:${PORT}"
networks:
- app-network
depends_on:
- redis
- mongo
worker:
build:
context: .
dockerfile: ./worker/Dockerfile
container_name: code_crusher_worker
env_file:
- ./.env
networks:
- app-network
depends_on:
- redis
- mongo
volumes:
- /var/run/docker.sock:/var/run/docker.sock
privileged: true
k6:
image: grafana/k6
container_name: code_crusher_k6
networks:
- app-network
volumes:
- ./loadtests:/scripts
command: ["run", "/scripts/test.js"]
depends_on:
- server
- worker
networks:
app-network:
driver: bridge
volumes:
code_crusher: