Skip to content
Snippets Groups Projects
Commit eeb4c14b authored by Riccardo Boero's avatar Riccardo Boero :innocent:
Browse files

update README

parent 71998d38
No related branches found
No related tags found
No related merge requests found
...@@ -11,11 +11,27 @@ Rail stations (passengers and freigth) and working rail lines in Europe and Nort ...@@ -11,11 +11,27 @@ Rail stations (passengers and freigth) and working rail lines in Europe and Nort
--- ---
## Use ## Use
1. Pull the image: 1. Through the command line:
> docker pull registry.git.nilu.no/fact/data/fact_rail:latest ```bash
docker pull registry.git.nilu.no/fact/data/fact_rail:latest
2. Run this data service: docker run -t -i --name fact_rail -e MARIADB_DATABASE=FACT_rail -e MYSQL_ROOT_PASSWORD=devops -p 3311:3306 -d registry.git.nilu.no/fact/data/fact_rail:0.1
>docker run -t -i --name fact_rail -e MARIADB_DATABASE=FACT_rail -e MYSQL_ROOT_PASSWORD=devops -p 3311:3306 -d registry.git.nilu.no/fact/data/fact_rail:0.1 ```
2. Through a docker-compose file:
```yaml
version: '3.8'
services:
fact_rail:
image: registry.git.nilu.no/fact/data/fact_rail:latest
container_name: fact_rail
environment:
MARIADB_DATABASE: FACT_rail
MYSQL_ROOT_PASSWORD: devops
ports:
- "3311:3306"
restart: unless-stopped
```
which could be executed with `docker-compose up fact_rail -d`.
The container makes available a MariaDB instance with the full database on the rail system **FACT_rail**. It is reachable on port 3311 of the localhost and the root password is 'devops'. The container makes available a MariaDB instance with the full database on the rail system **FACT_rail**. It is reachable on port 3311 of the localhost and the root password is 'devops'.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment