To use this image, you'll need a docker-compose.yml like the one below:
services:
nginx:
image: openhmis/greenlight-client
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- ${REACT_APP_NGINX_PORT}:${REACT_APP_NGINX_PORT}
command: ["nginx", "-g", "daemon off;"]
You'll also need an nginx.conf file in the same directory that looks like:
server {
listen <Your NGINX Port>;
server_name localhost;
underscores_in_headers on;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
location /greenlight/rest/v1/ {
proxy_pass http://<your URL>:<Greenlight Server Port>;
proxy_pass_request_headers on;
}
location /socket.io {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://<your URL>:<Greenlight Socket.IO Port>;
}
}
Content type
Image
Digest
sha256:05dfacde0…
Size
13.2 MB
Last updated
over 3 years ago
docker pull openhmis/greenlight-client:4.29.2-test