update db-seed

This commit is contained in:
MaKarin
2026-04-04 10:07:10 +03:00
parent 1a8fd94858
commit 873550ae9b
3 changed files with 26 additions and 9 deletions

View File

@@ -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