diff --git a/back/transfer_bdd/v0.0...v1.0/db.py b/back/transfer_bdd/v0.0...v1.0/db.py index fd54156..a0248a7 100644 --- a/back/transfer_bdd/v0.0...v1.0/db.py +++ b/back/transfer_bdd/v0.0...v1.0/db.py @@ -4,4 +4,4 @@ import psycopg2 debug.info("connect BDD: ") -conn = psycopg2.connect(dbname="karideo", user="postgres", password="postgres", host="localhost", port="43522") +conn = psycopg2.connect(dbname="karideo", user="postgres", password="postgres", host="localhost", port="15032") diff --git a/bdd/docker-compose.yaml b/bdd/docker-compose.yaml index 1222458..8e75418 100644 --- a/bdd/docker-compose.yaml +++ b/bdd/docker-compose.yaml @@ -1,14 +1,21 @@ version: "3.7" services: - karideo_postgres: + bdd_service: restart: always image: postgres:alpine environment: PGDATA: /var/lib/postgresql/data POSTGRES_DB: karideo + #this is for debug only ports: - - "43522:5432" + - "15032:5432" volumes: - ./data:/var/lib/postgresql/data - + adminer: + image: adminer + restart: always + ports: + - 15079:8080 + links: + - bdd_service:bdd diff --git a/readme.md b/readme.md index 414dad5..274a1ab 100644 --- a/readme.md +++ b/readme.md @@ -11,8 +11,13 @@ Run and install: so simple... ```{.bash} +# start the Bdd interface (no big data > 50Mo) +cd bdd +docker-compose up -d +# start the REST API cd back docker-compose up -d +# start the front API cd ../front docker-compose up -d ```