fix: docker image
This commit is contained in:
1
backend/.gitignore
vendored
1
backend/.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
screenmark
|
||||
.env.docker
|
||||
.env
|
||||
pgdata
|
||||
|
@ -5,12 +5,14 @@ services:
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: password
|
||||
POSTGRES_DB: haystack
|
||||
volumes:
|
||||
- ./schema.sql:/docker-entrypoint-initdb.d/schema.sql
|
||||
- ./pgdata:/var/lib/postgresql/data
|
||||
ports:
|
||||
- 4321:5432
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres -d haystack_db"]
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres -d haystack"]
|
||||
interval: 10s
|
||||
retries: 5
|
||||
start_period: 5s
|
||||
|
@ -1,6 +1,3 @@
|
||||
DROP DATABASE IF EXISTS haystack_db;
|
||||
CREATE DATABASE haystack_db;
|
||||
|
||||
DROP SCHEMA IF EXISTS haystack CASCADE;
|
||||
|
||||
CREATE SCHEMA haystack;
|
||||
|
Reference in New Issue
Block a user