Skip to content

fix(docker): fix Docker image does not provide web services#52

Open
dragonish wants to merge 1 commit intokarant-dev:mainfrom
dragonish:docker
Open

fix(docker): fix Docker image does not provide web services#52
dragonish wants to merge 1 commit intokarant-dev:mainfrom
dragonish:docker

Conversation

@dragonish
Copy link
Copy Markdown

In the currently published Docker image, only the last api stage is used, and no web stage is used, resulting in the image not providing web services, and only one API port of 3000 is available.

This PR creates a production stage that runs both Nginx and Node API services and uses Supervisord to manage both processes. Also use /api/ reverse proxy to internal 3000 port, exposing only 8080 port for convenience.

The results run container (8080:8080) provides:

  • Web Interface: http://localhost:8080
  • API endpoint: http://localhost:8080/api/redact

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant