Skip to content

Commit

Permalink
Nginx build for docker
Browse files Browse the repository at this point in the history
Signed-off-by: ZhuoweiWen <[email protected]>
  • Loading branch information
ZhuoweiWen authored and rayb26 committed Oct 25, 2023
1 parent 3707a4e commit 4e32d6f
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,24 @@ services:
depends_on:
- backend
ports:
- ${DEVELOP_FRONTEND_PORT}:${DEVELOP_FRONTEND_PORT}
- ${DEVELOP_FRONTEND_PORT}:${DEVELOP_FRONTEND_PORT}

nginx:
image: ${DOCKER_IMAGE_NGINX}
build:
context: ./
dockerfile: Dockerfile.nginx
container_name: nginx-proxy
environment:
- SSL_PASSWORD_FILE=/ssl/passphrase_file
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ../ssl/bdk.cs.vt.edu.crt:/etc/nginx/ssl/bdk.cs.vt.edu.crt
- ../ssl/private_key.pem:/etc/nginx/ssl/private_key.pem
- ../ssl/passphrase_file:/ssl/passphrase_file
depends_on:
- backend
- frontend

0 comments on commit 4e32d6f

Please sign in to comment.