-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
33 lines (32 loc) · 1.01 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
version: "2"
services:
app:
build: .
environment:
- NODE_ENV=development
- IGNORE_TLS=true
- REDIS_HOST=redis
- REDIS_PORT=6379
links:
- redis
ports:
- "8080:8080"
volumes:
- "/app/public"
redis:
image: redis
nginx-proxy:
image: quay.io/ukhomeofficedigital/nginx-proxy:v1.5.1
environment:
- PROXY_SERVICE_HOST=app
- PROXY_SERVICE_PORT=8080
- NAXSI_USE_DEFAULT_RULES=FALSE
- ADD_NGINX_SERVER_CFG=add_header Cache-Control private;add_header X-Frame-Options "SAMEORIGIN" always;add_header X-Content-Type-Options "nosniff" always;add_header X-XSS-Protection "1; mode=block" always;location /public {add_header Cache-Control max-age=86400;add_header X-Frame-Options "SAMEORIGIN" always;add_header X-Content-Type-Options "nosniff" always;add_header X-XSS-Protection "1; mode=block" always;alias /app/public;}
- ERROR_REDIRECT_CODES=599
ports:
- "443:443"
- "80:80"
links:
- app
volumes_from:
- app