Commit 9ccb1c92 authored by Vasek Sraier's avatar Vasek Sraier

improved documentation of docker images

parent 4537eeb1
......@@ -4,8 +4,10 @@ All commands and files are referenced from this directory
* first, all Java servers must be compiled
* Java8 required, otherwise it fails
* run `bash`
* build and run with `docker-compose up`
* to compile, run `bash`
* build and run containers with `docker-compose up`
* NOTE: PostgreSQL initialization runs AFTER the server starts. Exactly at the moment, when all other servers are expecting the database to communicate. If you run `docker-compose up postgres` beforehand, the database will initialize. Then you can stop it (Ctrl-C) and run all the containers at once - `docker-compose up`. This way, the dabase will be already initialized so that other services (mainly control server) don't complain
* To communicate with the containers, you need to know their IP address (no ports in docker are exported). By default, DNS is expected to resolve hostnames. See section DNS bellow.
* configuration is in `.env` file
## Servers
......@@ -20,7 +22,8 @@ All commands and files are referenced from this directory
* needs to run init scripts on first run
* initialize and enable extensions
* initialize all tables the server will be using
* exports port 5432 to localhost, so that it is possible to connect pgAdmin (credentials in `.env` file)
* ports
* 5432 - postgres, can be used to connect pgAdmin (credentials in `.env` file)
### Control
......@@ -38,6 +41,8 @@ All commands and files are referenced from this directory
* hostname - `speed.netmetr`
* runs single C program
* requires a certificate - when building, new self-signed is created
* ports
* 8081 - RMBT noSSL
### QoS
......@@ -49,4 +54,6 @@ All commands and files are referenced from this directory
## DNS
* to access services running in the containers, use [dns-proxy-server](
* download release binary and run it with `sudo` (and hope you haven't just downloaded malware :) )
* you can then use hostnames to access the servers
* the containers should not care about this and they should work without it, but you won't be able to connect to them without it
......@@ -15,8 +15,6 @@ services:
- "5432:5432"
hostname: control.netmetr
......@@ -26,8 +24,6 @@ services:
- "5005:5005"
- "postgres:${RMBT_DB_HOST}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment