Skip to content

Commit

Permalink
Fixed docker database support
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilhermeF03 committed Jun 28, 2024
1 parent 73ae016 commit fa45ab5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
container_name: notespace-postgres-db
build:
context: .
dockerfile: docker/Dockerfile-db
dockerfile: ./docker/Dockerfile-db
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=notespace
Expand Down
6 changes: 3 additions & 3 deletions code/server/docker/Dockerfile-db
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ FROM postgres
USER postgres
WORKDIR /app

COPY ./sql/create_tables.sql /docker-entrypoint-initdb.d/1_create-schema.sql
COPY sql/create_tables.sql /docker-entrypoint-initdb.d/1_create-schema.sql

COPY --chown=postgres:postgres ./docker/scripts/wait-for-postgres.sh ./bin/wait-for-postgres.sh
RUN chmod +x ./bin/wait-for-postgres.sh
#COPY --chown=postgres:postgres ./docker/scripts/wait-for-postgres.sh ./bin/wait-for-postgres.sh
#RUN chmod +x ./bin/wait-for-postgres.sh

EXPOSE 5432

0 comments on commit fa45ab5

Please sign in to comment.