Skip to content

Commit

Permalink
feat: dockercompose to spin up pg
Browse files Browse the repository at this point in the history
  • Loading branch information
noahdurbin committed Aug 26, 2024
1 parent dfa9060 commit eb5268d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: "3"
services:
db:
image: postgres:14
volumes:
- ./tmp/db:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: password
web:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3001 -b '0.0.0.0'"
volumes:
- .:/app
ports:
- "3001:3001"
depends_on:
- db
environment:
DATABASE_URL: postgres://postgres:password@db:5432/turlink_be_development
PORT: 3001

0 comments on commit eb5268d

Please sign in to comment.