Les sessions foncitonnent, reste à pouvoir les sauvegarder, soit via redis ou via type orm. Pour l'instant redis est un échec
This commit is contained in:
@@ -21,6 +21,7 @@ services:
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- postgresql
|
||||
- redis
|
||||
|
||||
prod:
|
||||
container_name: nestjs_api_prod
|
||||
@@ -44,12 +45,13 @@ services:
|
||||
NODE_ENV: "${NODE_ENV}"
|
||||
depends_on:
|
||||
- postgresql
|
||||
- redis
|
||||
|
||||
postgresql:
|
||||
container_name: nestjs_postgresql
|
||||
image: postgres
|
||||
ports:
|
||||
- 5432:5432
|
||||
expose:
|
||||
- "5432"
|
||||
networks:
|
||||
- transcendance_network
|
||||
volumes:
|
||||
@@ -62,6 +64,19 @@ services:
|
||||
POSTGRES_HOST: "${POSTGRES_HOST}"
|
||||
POSTGRES_PORT: "${POSTGRES_PORT}"
|
||||
|
||||
redis:
|
||||
container_name: nestjs_redis
|
||||
image: redis:alpine
|
||||
expose:
|
||||
- "6379"
|
||||
networks:
|
||||
- transcendance_network
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
REDIS_HOST: "${REDIS_HOST}"
|
||||
REDIS_PORT: "${REDIS_PORT}"
|
||||
|
||||
|
||||
networks:
|
||||
transcendance_network:
|
||||
driver: bridge
|
||||
@@ -69,6 +84,7 @@ networks:
|
||||
volumes:
|
||||
data_nest_back:
|
||||
data_nest_postgresql:
|
||||
data_nest_redis:
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user