feat: add db init on prod, and remove former image attributes from docker-compose
This commit is contained in:
parent
ba5e136dd5
commit
fb7dc5f6f7
@ -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}
|
||||||
|
@ -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}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user