Skip to content
Snippets Groups Projects
Commit 378495ce authored by jan.bednarik's avatar jan.bednarik
Browse files

Working demo.

parents
No related branches found
No related tags found
No related merge requests found
run:
docker-compose up -d
stop:
docker-compose down
destroy:
docker-compose down -v
# Open Lobby Demo
Demo of [Open Lobby Server](https://github.com/openlobby/openlobby-server) and
[Open Lobby App](https://github.com/openlobby/openlobby-app).
You need [Docker Compose](https://docs.docker.com/compose/) for running this
demo.
## Run
Clone this repository and then you can:
- Run it: `make run`
- Stop it: `make stop`
- Stop and/or remove all data: `make destroy`
It runs:
- Elasticsearch on port `9200`
- Open Lobby Server on port `8010` - GraphQL API endpoint and GraphiQL
interface are at `http://localhost:8010/graphql`
- Open Lobby App on port `8020` - web application is at `http://localhost:8020`
You may notice some errors and crashes if you access it immediately because
Elasticsearch starts slowly. But it should recover and eventually it will be all
running fine.
version: "2"
services:
openlobby-es:
image: openlobby/openlobby-es-czech:latest
environment:
- discovery.type=single-node
- cluster.name=openlobby
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
ports:
- "9200:9200"
restart: always
volumes:
- es-data:/usr/share/elasticsearch/data
openlobby-server:
image: openlobby/openlobby-server:latest
ports:
- "8010:8010"
restart: always
depends_on:
- openlobby-es
environment:
- ELASTICSEARCH_DSN=http://openlobby-es:9200
- SECRET_KEY=unsecure-demo-secret-key
openlobby-app:
image: openlobby/openlobby-app:latest
ports:
- "8020:8020"
restart: always
depends_on:
- openlobby-server
environment:
- OPENLOBBY_SERVER_DSN=http://openlobby-server:8010
- SECRET_KEY=another-demo-secret-key
volumes:
es-data:
driver: local
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment