-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
45 lines (45 loc) · 1.07 KB
/
docker-compose.yaml
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
version: "3.9"
services:
base:
image: nginx-with-modsec-base
build:
dockerfile: ./docker/nginx-with-modsec-base/Dockerfile
args:
- MAKE_THREADS=1
nginx-before-fix:
image: nginx-before-fix
build:
dockerfile: ./docker/nginx-with-specific-modsec/Dockerfile
args:
- MODSEC_VERSION=3.0.6
- MAKE_THREADS=1
restart: always
privileged: true
ports:
- "8081:80"
volumes:
- ./config/mount/nginx.conf:/etc/nginx/nginx.conf
- ./config/mount/rules/:/etc/nginx/rules/
depends_on:
- base
nginx-after-fix:
image: nginx-after-fix
build:
dockerfile: ./docker/nginx-with-specific-modsec/Dockerfile
args:
- MODSEC_VERSION=3.0.7
- MAKE_THREADS=1
restart: always
privileged: true
ports:
- "8082:80"
volumes:
- ./config/mount/nginx.conf:/etc/nginx/nginx.conf
- ./config/mount/rules/:/etc/nginx/rules/
depends_on:
- base
dangling-backend:
image: codingpuss/long-api:0.0.1
hostname: backend
ports:
- "8083:8181"