-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (83 loc) · 1.98 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
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
services:
webserv:
container_name: webserv-${BUILD_TYPE}
ports:
- "8080:8080"
- "8081:8081"
- "8090:8090"
- "8091:8091"
- "8092:8092"
- "8093:8093"
volumes:
- ./site:/var/www/html/test_site
- ./html-website-templates:/var/www/html/static_templates
- ./src/:/app/src/
- ./default.conf:/app/default.conf
- ./Makefile:/app/Makefile
build:
context: .
args:
BUILD_TYPE: ${BUILD_TYPE}
environment:
UID: ${MY_UID}
GID: ${MY_GID}
BUILD_TYPE: ${BUILD_TYPE}
restart: unless-stopped
networks:
- web-siege-network
webserv-dev:
container_name: webserv-dev
ports:
- "8080:8080"
- "8081:8081"
- "8090:8090"
- "8091:8091"
- "8092:8092"
- "8093:8093"
volumes:
- ./site:/var/www/html/test_site
- ./html-website-templates:/var/www/html/static_templates
- ./src/:/app/src/
- ./default.conf:/app/default.conf
- ./Makefile:/app/Makefile
build:
context: .
dockerfile: Dockerfile.dev
args:
BUILD_TYPE: ${BUILD_TYPE}
environment:
UID: ${MY_UID}
GID: ${MY_GID}
BUILD_TYPE: ${BUILD_TYPE}
nginx:
container_name: nginx
ports:
- "${NGINX_PORT_1}:8080"
- "${NGINX_PORT_2}:8081"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./site:/var/www/html/test_site
- ./html-website-templates:/var/www/html/static_templates
build:
context: nginx
dockerfile: Dockerfile
restart: unless-stopped
networks:
- nginx-siege-network
siege:
container_name: siege
build:
context: .
dockerfile: Dockerfile.siege
environment:
CONTAINER: ${CONTAINER}
PORT: ${PORT}
volumes:
- ./siege_test.sh:/app/siege_test.sh
- ./siege.log:/app/siege.log
networks:
- web-siege-network
- nginx-siege-network
networks:
web-siege-network:
nginx-siege-network: