.gitlab-ci.yml updated v13
This commit is contained in:
parent
802e087f62
commit
e1b88188f8
2 changed files with 6 additions and 3 deletions
5
clr_test/clearing-all/db/Dockerfile
Normal file
5
clr_test/clearing-all/db/Dockerfile
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
FROM mirror.gcr.io/postgres:14.1-alpine
|
||||||
|
|
||||||
|
ADD tables.sql /docker-entrypoint-initdb.d/
|
||||||
|
ADD export.sql /docker-entrypoint-initdb.d/
|
||||||
|
ADD test-data.sql.sql /docker-entrypoint-initdb.d/
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: mirror.gcr.io/postgres:latest
|
build: ./clearing-all/db
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=clearing
|
- POSTGRES_USER=clearing
|
||||||
|
|
@ -12,8 +12,6 @@ services:
|
||||||
- clearing-net
|
- clearing-net
|
||||||
ports:
|
ports:
|
||||||
- "5433:5432"
|
- "5433:5432"
|
||||||
volumes:
|
|
||||||
- /builds/mfd/clearing/clr_test/clearing-all/db:/docker-entrypoint-initdb.d
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U clearing -h db -p 5432 -d clearing"]
|
test: ["CMD-SHELL", "pg_isready -U clearing -h db -p 5432 -d clearing"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue