1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-26 10:43:34 +02:00

Use stock nginx image, mount nginx config and TLS cert

This commit is contained in:
Christopher Hoskin 2021-04-21 18:24:31 +01:00
parent 0a5905b434
commit 1bae2a7bb1
8 changed files with 30 additions and 39 deletions

View file

@ -2,15 +2,15 @@
version: '2.2'
services:
tls_proxy:
build: ../tls_proxy
nginx:
image: "${NGINX_IMAGE}"
ports:
- 127.0.0.1:443:18443
volumes:
- ./../tls_proxy/certs:/certs
- ./../tls_proxy/nginx.conf:/etc/nginx/nginx.conf
environment:
OL_DOMAINS: "${OL_DOMAINS}"
- "${NGINX_PRIVATE_KEY_PATH}:/certs/nginx_key.pem"
- "${NGINX_CERTIFICATE_PATH}:/certs/nginx_certificate.pem"
- "${NGINX_CONFIG_PATH}:/etc/nginx/nginx.conf"
restart: on-failure:5
container_name: nginx
depends_on:
- sharelatex