[DEV] some corrections

This commit is contained in:
Edouard DUPIN 2020-02-16 23:38:13 +01:00
parent 7fd75ddcac
commit d0c6c07833
3 changed files with 16 additions and 4 deletions

View File

@ -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")

View File

@ -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

View File

@ -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
```