-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
76 lines (71 loc) · 1.7 KB
/
docker-compose.yaml
File metadata and controls
76 lines (71 loc) · 1.7 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
72
73
74
75
76
version: '3.8'
services:
backend:
build:
context: ./Backend
dockerfile: Dockerfile
container_name: backend
ports:
- "8080:8080"
depends_on:
- redis
- mongodb
restart: always
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- MONGODB_URI=mongodb://mongodb:27017
frontend:
build:
context: ./Frontend
dockerfile: Dockerfile
container_name: frontend
ports:
- "3000:3000"
depends_on:
- backend
restart: always
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8080
- NEXT_PUBLIC_WS_URL=ws://localhost:8080/ws
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
restart: always
#volumes:
# - redis_data:/data
mongodb:
image: mongo:latest
container_name: mongodb
ports:
- "27017:27017"
restart: always
#volumes:
# - mongodb_data:/data/db
# k6_pressure_test:
# image: grafana/k6:latest
# container_name: k6_pressure_test
# volumes:
# - ./k6:/scripts
# depends_on:
# - backend
# - redis
# - mongodb
# entrypoint: [ "k6", "run", "/scripts/pressure_test.js" ]
# k6_socket_test:
# image: grafana/k6:latest
# container_name: k6_socket_test
# volumes:
# - ./k6:/scripts
# depends_on:
# - k6_pressure_test
# - backend
# - redis
# - mongodb
# entrypoint: [ "k6", "run", "/scripts/socket_test.js" ]
volumes:
frontend_node_modules:
#redis_data:
#mongodb_data: