Hi
I have init.sql file in the same folder as docker-compose.yml, when it runs in Codefresh I get this error
[2024-01-30T15:57:58.457Z] postgres | psql:/docker-entrypoint-initdb.d/init.sql: error: could not read from input file: Is a directory
locally it runs fine. any suggestions how to fix in Codefresh?
how it is defined in docker compose:
postgres:
container_name: postgres
image: postgres:latest
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
PGDATA: /data/postgres
ports:
- 5432:5432
volumes:
**- ./init.sql:/docker-entrypoint-initdb.d/init.sql**