From da25570f37105035c161f7df97f500f592b2b643 Mon Sep 17 00:00:00 2001
From: Riccardo Boero <ribo@nilu.no>
Date: Wed, 8 Jan 2025 08:49:23 +0100
Subject: [PATCH] update README

---
 README.md | 26 +++++++++++++++++++++-----
 1 file changed, 21 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index ba62c5a..49821c7 100644
--- a/README.md
+++ b/README.md
@@ -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'.
 
-- 
GitLab