summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pharos-dashboard/Makefile3
-rw-r--r--pharos-dashboard/docker-compose.yml5
-rw-r--r--pharos-dashboard/readme.txt3
3 files changed, 9 insertions, 2 deletions
diff --git a/pharos-dashboard/Makefile b/pharos-dashboard/Makefile
index e52e15d..9070917 100644
--- a/pharos-dashboard/Makefile
+++ b/pharos-dashboard/Makefile
@@ -10,6 +10,9 @@ start:
stop:
docker-compose stop
+data:
+ docker volume create --name=pharos-data
+
shell-nginx:
docker exec -ti ng01 bash
diff --git a/pharos-dashboard/docker-compose.yml b/pharos-dashboard/docker-compose.yml
index 16b8c0f..44a263f 100644
--- a/pharos-dashboard/docker-compose.yml
+++ b/pharos-dashboard/docker-compose.yml
@@ -50,7 +50,7 @@ services:
env_file: config.env
volumes:
- ./config/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- - /var/lib/pharos_dashboard/postgresql:/var/lib/postgresql
+ - pharos-data:/var/lib/postgresql/data
rabbitmq:
restart: always
@@ -72,3 +72,6 @@ services:
- rabbitmq
volumes:
- ./:/pharos_dashboard
+volumes:
+ pharos-data:
+ external: true
diff --git a/pharos-dashboard/readme.txt b/pharos-dashboard/readme.txt
index b21320f..2a25912 100644
--- a/pharos-dashboard/readme.txt
+++ b/pharos-dashboard/readme.txt
@@ -18,6 +18,7 @@ Deployment:
- install docker, docker-compose and bower
- run 'bower install' in ./src/static/ to fetch javascript dependencies
- run 'make build' to build the containers
+- run 'make data'
- run 'make up' to run the dashboard
Updating:
@@ -32,4 +33,4 @@ If there is migrations that need user input (like renaming a field), they need t
Logs / Shell access:
-- there is some shortcuts in the makefile \ No newline at end of file
+- there is some shortcuts in the makefile