add volume and exc process

This commit is contained in:
Josh Chernoff 2022-04-29 23:45:10 -07:00
parent 294b229e48
commit 594bd9773f
2 changed files with 14 additions and 0 deletions

View file

@ -11,10 +11,15 @@ services:
LIVE_BEATS_GITHUB_CLIENT_SECRET: "FIX_ME" LIVE_BEATS_GITHUB_CLIENT_SECRET: "FIX_ME"
DEV_CONTAINER: "true" DEV_CONTAINER: "true"
DATABASE_URL: "ecto://postgres:postgres@db/live_beats_dev" DATABASE_URL: "ecto://postgres:postgres@db/live_beats_dev"
MIX_ENV: dev
volumes:
- .:/app/:cached
depends_on: depends_on:
- db - db
ports: ports:
- "4000:4000" - "4000:4000"
command:
- ./run.sh
db: db:
container_name: "live_beats_data" container_name: "live_beats_data"
image: "postgres:14.2" image: "postgres:14.2"

9
run.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
set -e
mix deps.get
mix ecto.setup
mix phx.server