feat: add db init on prod, and remove former image attributes from docker-compose

This commit is contained in:
Nemo D'ACREMONT 2024-10-26 09:32:00 +02:00
parent ba5e136dd5
commit fb7dc5f6f7
No known key found for this signature in database
GPG Key ID: 6E5BCE8022FA8276
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,6 @@ services:
build: build:
context: ./PostgreSQL context: ./PostgreSQL
dockerfile: Dockerfile dockerfile: Dockerfile
image: postgres
restart: always restart: always
environment: environment:
- POSTGRES_DB=${DB_NAME} - POSTGRES_DB=${DB_NAME}

View File

@ -2,7 +2,9 @@ services:
database: database:
hostname: database hostname: database
container_name: briques_postgres container_name: briques_postgres
image: postgres build:
context: ./PostgreSQL
dockerfile: Dockerfile
restart: always restart: always
environment: environment:
- POSTGRES_DB=${DB_NAME} - POSTGRES_DB=${DB_NAME}