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

update README

parent 32aab36d
No related branches found
No related tags found
No related merge requests found
......@@ -10,11 +10,27 @@ Official statistics on population in US (Census) and Europe (EUROSTAT).
---
## Use
1. Pull the image:
> docker pull registry.git.nilu.no/fact/data/fact_population:latest
2. Run this data service:
>docker run -t -i --name fact_population -e MARIADB_DATABASE=FACT_population -e MYSQL_ROOT_PASSWORD=devops -p 3309:3306 -d registry.git.nilu.no/fact/data/fact_population:latest
1. Through the command line:
```bash
docker pull registry.git.nilu.no/fact/data/fact_population:latest
docker run -t -i --name fact_population -e MARIADB_DATABASE=FACT_population -e MYSQL_ROOT_PASSWORD=devops -p 3309:3306 -d registry.git.nilu.no/fact/data/fact_population:latest
```
2. Through a docker-compose file:
```yaml
version: '3.8'
services:
fact_population:
image: registry.git.nilu.no/fact/data/fact_population:latest
container_name: fact_population
environment:
MARIADB_DATABASE: FACT_population
MYSQL_ROOT_PASSWORD: devops
ports:
- "3309:3306"
restart: unless-stopped
```
which could be executed with `docker-compose up fact_population -d`.
The container makes available a MariaDB instance with the full database on population **FACT_population**. It is reachable on port 3309 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