Skip to content

Commit

Permalink
feat: dockerization of db
Browse files Browse the repository at this point in the history
  • Loading branch information
BeauBouchard committed Oct 10, 2023
1 parent 351ef89 commit d0201c1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ COPY . /usr/src/app/
# change to working directory
WORKDIR /usr/src/app

# set the database url for local development
ENV DATABASE_URL="postgresql://postgres:@db:5432/"

# install node dependencies
RUN npm install

Expand Down
18 changes: 18 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: "3"
services:
db:
image: postgres:11.5
command: postgres -c log_statement=all
ports:
- 5432:5432
veneer:
container_name: transmission
build:
context: .
command: bash -c "rm -f ./tmp/pids/server.pid && tail -f /dev/null"
volumes:
- ${PWD}:/usr/src/app
depends_on:
- db
ports:
- 5552:5552

0 comments on commit d0201c1

Please sign in to comment.