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

Update to server changes.

parent 378495ce
Branches
Tags
No related merge requests found
...@@ -14,11 +14,12 @@ Clone this repository and then you can: ...@@ -14,11 +14,12 @@ Clone this repository and then you can:
- Stop and/or remove all data: `make destroy` - Stop and/or remove all data: `make destroy`
It runs: It runs:
- PostgreSQL on port `5432`
- Elasticsearch on port `9200` - Elasticsearch on port `9200`
- Open Lobby Server on port `8010` - GraphQL API endpoint and GraphiQL - Open Lobby Server on port `8010` - GraphQL API endpoint and GraphiQL
interface are at `http://localhost:8010/graphql` interface are at `http://localhost:8010/graphql`
- Open Lobby App on port `8020` - web application is at `http://localhost:8020` - 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 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 PostgreSQL and Elasticsearch starts slowly. But it should recover and eventually
running fine. it will be all running fine.
version: "2" version: "2"
services: services:
openlobby-postgres:
image: postgres:9.5
environment:
- POSTGRES_USER=db
- POSTGRES_PASSWORD=db
- POSTGRES_DB=openlobby
ports:
- "5432:5432"
restart: always
volumes:
- postgres-data:/var/lib/postgresql/data
openlobby-es: openlobby-es:
image: openlobby/openlobby-es-czech:latest image: openlobby/openlobby-es-czech:latest
environment: environment:
...@@ -25,8 +37,10 @@ services: ...@@ -25,8 +37,10 @@ services:
- "8010:8010" - "8010:8010"
restart: always restart: always
depends_on: depends_on:
- openlobby-postgres
- openlobby-es - openlobby-es
environment: environment:
- DATABASE_DSN=postgresql://db:db@openlobby-postgres:5432/openlobby
- ELASTICSEARCH_DSN=http://openlobby-es:9200 - ELASTICSEARCH_DSN=http://openlobby-es:9200
- SECRET_KEY=unsecure-demo-secret-key - SECRET_KEY=unsecure-demo-secret-key
...@@ -42,5 +56,7 @@ services: ...@@ -42,5 +56,7 @@ services:
- SECRET_KEY=another-demo-secret-key - SECRET_KEY=another-demo-secret-key
volumes: volumes:
postgres-data:
driver: local
es-data: es-data:
driver: local driver: local
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment