Sign inSign up

hotelsdotcom/styx

By hotelsdotcom

Updated over 6 years ago

Programmable, asynchronous, event-based reverse proxy for JVM.

Image
1

1.3K

hotelsdotcom/styx repository overview

GitHub: https://github.com/HotelsDotCom/styx

Read the User Manual for additional configuration.

Docker Quick Start

Running

To run the resulting Styx Docker image:

$ docker container run -d --name myStyx --rm -p 8000:8080 -p 9000:9000 -p 8443:8443 styxcore:latest

Configuration

Running Styx without configuration is hardly useful. Provide custom configuration using Docker mounted volumes.

First, create a configuration directory and copy in your Styx and origins configuration:

$ mkdir myConfig
$ cp styxconf.yml origins.yml myConfig/

Ensure the the Styx configuration reads the origins from /styx/config/ directory, like so:

services:
  factories:
    backendServiceRegistry:
      class: "com.hotels.styx.proxy.backends.file.FileBackedBackendServicesRegistry$Factory"
      config:
        originsFile: "/styx/config/origins.yml"

Finally, start the Styx Docker image using /styx/config/styxconf.yml as a configuration file:

docker container run -d --name myStyx --rm \
    -p 8080:8080 -p 9000:9000 -p 8443:8443 \
    -v $(pwd)/myConfig:/styx/config \
    -v $(pwd)/styxLogs:/styx/logs \
    styxcore:latest /styx/config/styxconf.yml

Tag summary

Content type

Image

Digest

Size

346.7 MB

Last updated

over 6 years ago

docker pull hotelsdotcom/styx