forked from HHS/TANF-app
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
48 lines (47 loc) · 1.21 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
version: "3.4"
services:
zaproxy:
image: softwaresecurityproject/zap-stable:2.13.0
container_name: zap-scan
command: sleep 3600
ports:
- 8090:8090
networks:
- default
volumes:
- ./reports:/zap/wrk/:rw
- ../scripts/zap-hook.py:/zap/scripts/zap-hook.py:ro
tdp-frontend:
stdin_open: true # docker run -i
tty: true # docker run -t
build:
context: .
target: nginx
ports:
- 3000:80
- 8080:8080
networks:
- default
volumes:
- ./:/home/node/app
environment:
- NGINX_FRONTEND=tdp-frontend
- BACK_END=web
- LOCAL_DEV=true
- KIBANA=kibana
- REACT_APP_DEVAUTH=${REACT_APP_DEVAUTH}
command: >
/bin/sh -c
"echo 'starting nginx' &&
envsubst '$${BACK_END} $${KIBANA}' < /etc/nginx/locations.conf > /etc/nginx/locations_.conf &&
rm /etc/nginx/locations.conf &&
cp /etc/nginx/locations_.conf /etc/nginx/locations.conf &&
envsubst '
$${KIBANA} $${BACK_END} $${NGINX_FRONTEND} $${LOCAL_DEV}
'< /etc/nginx/default.conf.template
> /etc/nginx/nginx.conf &&
nginx -g 'daemon off;'"
networks:
default:
external:
name: external-net