Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
FACT Electric Power Generation and Transmission
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Container Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FACT
FACT Data Services
FACT Electric Power Generation and Transmission
Commits
da25570f
Commit
da25570f
authored
2 months ago
by
Riccardo Boero
Browse files
Options
Downloads
Patches
Plain Diff
update README
parent
60357902
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+21
-5
21 additions, 5 deletions
README.md
with
21 additions
and
5 deletions
README.md
+
21
−
5
View file @
da25570f
...
...
@@ -13,11 +13,27 @@ Location, size, and type of electricity generation plants and transmission lines
## Use
1. Pull the image
:
>
docker
pull
registry.git.nilu.no/fact/data/fact_power:latest
2
. Run this data service:
>
docker run -t -i --name fact_power -e MARIADB_DATABASE=FACT_power -e MYSQL_ROOT_PASSWORD=devops -p 3313:3306 -d registry.git.nilu.no/fact/data/fact_power:latest
1. Through the command line
:
```
bash
docker pull registry.git.nilu.no/fact/data/fact_power:latest
docker run -t -i --name fact_power -e MARIADB_DATABASE=FACT_power -e MYSQL_ROOT_PASSWORD=devops -p 3313:3306 -d registry.git.nilu.no/fact/data/fact_power:latest
```
2. Through a docker-compose file
:
```
yaml
version
:
'
3.8'
services
:
fact_power
:
image
:
registry.git.nilu.no/fact/data/fact_power:latest
container_name
:
fact_power
environment
:
MARIADB_DATABASE
:
FACT_power
MYSQL_ROOT_PASSWORD
:
devops
ports
:
-
"
3313:3306"
restart
:
unless-stopped
```
which could be executed with `docker-compose up fact_power -d`.
The container makes available a MariaDB instance with the full database on population **FACT_power**. It is reachable on port 3313 of the localhost and the root password is 'devops'.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment