Public | Automated Build

Last pushed: 6 months ago
Short Description
Chess Server that will provide restful APIs and a complete Web UI.
Full Description

Chess Server that will provide restful APIs and a complete Web UI.

Build and Run from Source

$ ./mvnw clean package

This builds an executable jar file in the target folder.
This jar file can now be started as:

$ java -jar chess-club-1.0.0.jar

The server is then listening on port 8080. This port can be overridden:

$ java -Dserver.port=8888 -jar chess-club-1.0.0.jar

Run from docker image

Run on an embedded H2 database (volatile)

The default configuration will start a volatile, in-memory database. This means
that data will only live as long as the container is running.


docker run -p 80:80 chesscorp/chess-club

Run on an embedded H2 database (persistent)

The embedded H2 database will allow you to without additional components. All data is stored
on the filesystem in the /data folder of the container.


docker run \
    -v /tmp/chess-database:/data \
    -p 80:80 \
    -e dbddl=update \
    chesscorp/chess-club

Run on an external PostgreSQL database

The chess-club application has also a built-in PostgreSQL driver. To use it,
override environment variables:


docker run \
    -p 80:80 \
    -e dburl=jdbc:postgresql://127.0.0.1:5432/chess1 \
    -e dbusername=<your database username> \
    -e dbpassword=<your database password> \
    -e dbdatabase=POSTGRESQL \
    -e dbddl=update \
    chesscorp/chess-club

See also

Our in-house automation scripts, docker-compose configurations and other stuff may be found in the ChessCorp/chess-club-automation repository.

License

MIT © Yannick Kirschhoffer

Docker Pull Command
Owner
chesscorp
Source Repository