-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
120 lines (111 loc) · 2.09 KB
/
docker-compose.yml
File metadata and controls
120 lines (111 loc) · 2.09 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
services:
gochi-app:
build:
context: Go/chi
dockerfile: Dockerfile
container_name: gochi-app
# ports:
# - "8080:8080"
env_file:
- Go/chi/.env
depends_on:
- postgres
- redis
networks:
- backend
rustaxum-app:
build:
context: Rust/axum
dockerfile: Dockerfile
container_name: rustaxum-app
# ports:
# - "8081:8080"
env_file:
- Rust/axum/.env
depends_on:
- postgres
- redis
networks:
- backend
zigzap-app:
build:
context: Zig/zap
dockerfile: Dockerfile
container_name: zigzap-app
# ports:
# - "8082:8080"
depends_on:
- postgres
- redis
networks:
- backend
cppcrow-app:
build:
context: C++/crow
dockerfile: Dockerfile
container_name: cppcrow-app
# ports:
# - "8083:8080"
depends_on:
- postgres
- redis
networks:
- backend
tsbun-app:
build:
context: JavaScript-TypeScript/bun
dockerfile: Dockerfile
container_name: tsbun-app
# ports:
# - "8084:8080"
depends_on:
- postgres
- redis
networks:
- backend
postgres:
image: postgres:alpine
container_name: postgres
environment:
POSTGRES_DB: resttest
POSTGRES_USER: resttest
POSTGRES_PASSWORD: resttest
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
- ./docker/postgres:/docker-entrypoint-initdb.d
networks:
- backend
redis:
image: redis:alpine
container_name: redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- backend
wrk:
image: williamyeh/wrk
container_name: wrk
entrypoint: ["/bin/sh", "-c"]
command: ["/scripts/bench.sh"]
volumes:
- ./wrk-results:/tmp/results
- ./wrk-scripts:/scripts
depends_on:
- gochi-app
- rustaxum-app
- zigzap-app
- cppcrow-app
- tsbun-app
networks:
- backend
volumes:
pg_data:
redis_data:
grafana_data:
networks:
backend:
driver: bridge