diff --git a/README.md b/README.md index 96e073a1754914b9d1e2b533ac24a46b56adfd3b..53b68ac42fef517e2d8f027101bffafd1c17eea7 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,27 @@ Official labor statistics about the US and European countries. Data sources are --- ## Use -1. Pull the image: -> docker pull registry.git.nilu.no/fact/data/fact_jobs:latest - -2. Run this data service: -> docker run -t -i --name fact\_jobs -e MARIADB\_DATABASE=FACT_jobs -e MYSQL\_ROOT\_PASSWORD=devops -p 3308:3306 -d registry.git.nilu.no/fact/data/fact\_jobs:0.1 +1. Through the command line: +```bash +docker pull registry.git.nilu.no/fact/data/fact_jobs:latest +docker run -t -i --name fact\_jobs -e MARIADB\_DATABASE=FACT_jobs -e MYSQL\_ROOT\_PASSWORD=devops -p 3308:3306 -d registry.git.nilu.no/fact/data/fact\_jobs:0.1 +``` +2. Through a docker-compose file: +```yaml +version: '3.8' + +services: + fact_jobs: + image: registry.git.nilu.no/fact/data/fact_jobs:latest + container_name: fact_jobs + environment: + MARIADB_DATABASE: FACT_jobs + MYSQL_ROOT_PASSWORD: devops + ports: + - "3308:3306" + restart: unless-stopped +``` +which could be executed with `docker-compose up fact_jobs -d`. The container makes available a MariaDB instance with the full database on employment. It is reachable on port 3308 of the localhost and the root password is 'devops'. @@ -255,7 +271,7 @@ Riccardo Boero - ribo@nilu.no ## Licenses All the code and the resulting docker images in this project are subject to: -- [GNU Generla Public License v2](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html). +- [GNU General Public License v2](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html). The data is released under: - [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) license.