update db-seed
This commit is contained in:
@@ -57,7 +57,9 @@ services:
|
||||
- proxy
|
||||
|
||||
db-seed:
|
||||
image: postgres:16
|
||||
build:
|
||||
context: .
|
||||
dockerfile: db-seed/Dockerfile
|
||||
container_name: toir-light-db-seed
|
||||
restart: "no"
|
||||
depends_on:
|
||||
@@ -67,14 +69,6 @@ services:
|
||||
PGPASSWORD: ${POSTGRES_PASSWORD:-change-me}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
||||
POSTGRES_DB: ${POSTGRES_DB:-toir}
|
||||
volumes:
|
||||
- ./equipment-import.sql:/seed/equipment-import.sql:ro
|
||||
command:
|
||||
[
|
||||
"sh",
|
||||
"-c",
|
||||
"psql -h postgres -U \"$${POSTGRES_USER}\" -d \"$${POSTGRES_DB}\" -v ON_ERROR_STOP=1 -f /seed/equipment-import.sql",
|
||||
]
|
||||
networks:
|
||||
- toir-light
|
||||
|
||||
|
||||
Reference in New Issue
Block a user