Skip to content

Commit

Permalink
Minor Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
R1c4rdCo5t4 committed Jul 9, 2024
1 parent aa68517 commit cb7b2db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ services:
context: .
dockerfile: ./docker/Dockerfile-db
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=notespace
- POSTGRES_DB=notespace
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- 5432:5432
4 changes: 4 additions & 0 deletions code/server/docker/Dockerfile-db
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ FROM postgres
USER postgres
WORKDIR /app

ENV POSTGRES_USER=${POSTGRES_USER}
ENV POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ENV POSTGRES_DB=${POSTGRES_DB}

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
Expand Down

0 comments on commit cb7b2db

Please sign in to comment.