[DEV] some corrections
This commit is contained in:
parent
7fd75ddcac
commit
d0c6c07833
@ -4,4 +4,4 @@ import psycopg2
|
|||||||
|
|
||||||
debug.info("connect BDD: ")
|
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")
|
||||||
|
@ -1,14 +1,21 @@
|
|||||||
version: "3.7"
|
version: "3.7"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
karideo_postgres:
|
bdd_service:
|
||||||
restart: always
|
restart: always
|
||||||
image: postgres:alpine
|
image: postgres:alpine
|
||||||
environment:
|
environment:
|
||||||
PGDATA: /var/lib/postgresql/data
|
PGDATA: /var/lib/postgresql/data
|
||||||
POSTGRES_DB: karideo
|
POSTGRES_DB: karideo
|
||||||
|
#this is for debug only
|
||||||
ports:
|
ports:
|
||||||
- "43522:5432"
|
- "15032:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/var/lib/postgresql/data
|
- ./data:/var/lib/postgresql/data
|
||||||
|
adminer:
|
||||||
|
image: adminer
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 15079:8080
|
||||||
|
links:
|
||||||
|
- bdd_service:bdd
|
||||||
|
@ -11,8 +11,13 @@ Run and install:
|
|||||||
so simple...
|
so simple...
|
||||||
|
|
||||||
```{.bash}
|
```{.bash}
|
||||||
|
# start the Bdd interface (no big data > 50Mo)
|
||||||
|
cd bdd
|
||||||
|
docker-compose up -d
|
||||||
|
# start the REST API
|
||||||
cd back
|
cd back
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
# start the front API
|
||||||
cd ../front
|
cd ../front
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user