If the NGINX container keeps restarting, fails to bind to port 80, or both, try adding user: root to the docker compose file under the NGINX section:
nginx:
user: root
ports:
- "80:80"
- "443:443"
environment:
- NG_SERVER_NAME=CSV4.iriusrisk.com
image: continuumsecurity/iriusrisk-prod:nginx
container_name: iriusrisk-nginx
networks:
- iriusrisk-frontend
mem_reservation: 50M
mem_limit: 200M
cpu_shares: 128
restart: unless-stopped
volumes:
- "./cert.pem:/etc/nginx/ssl/star_iriusrisk_com.crt:ro"
- "./key.pem:/etc/nginx/ssl/star_iriusrisk_com.key:ro"
Also, please be sure that port 80 and 443 are either available or are being used by the docker service using the netstat command:
user@CSV4 docker]$ sudo netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3885/docker-proxy
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 3518/docker-proxy
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 21793/postmaster
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 3863/docker-proxy
Comments
0 comments
Please sign in to leave a comment.