-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (55 loc) · 1.18 KB
/
docker-compose.yml
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
version: "3.7"
services:
code-challenge-golang:
build:
target: build
context: .
env_file:
- .env
volumes:
- .:/app
ports:
- 8080:8080
command:
CompileDaemon -directory="/app" -build="go build -o code-challenge-golang ." -command="/app/code-challenge-golang"
networks:
- internal-network
- dependent-network
depends_on:
- dependent-server
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
networks:
- internal-network
depends_on:
- code-challenge-golang
dependent-server:
build:
context: dependent-server
target: build
environment:
- PORT=8090
ports:
- 8090:8090
volumes:
- ./dependent-server:/app
command:
CompileDaemon -directory="/app" -build="go build -o dependent-server ." -command="/app/dependent-server"
networks:
- dependent-network
loadgen-server:
build:
context: loadgen-server
volumes:
- ./loadgen-server:/app
networks:
- internal-network
command:
python make_requests.py
networks:
internal-network:
dependent-network: