Make running Phoenix in dev mode via docker-compose easier
This commit is contained in:
parent
3c28348b04
commit
403871f089
@ -37,6 +37,7 @@ config :phoenix, :stacktrace_depth, 20
|
||||
# Configure your database
|
||||
config :asciinema, Asciinema.Repo,
|
||||
adapter: Ecto.Adapters.Postgres,
|
||||
url: System.get_env("DATABASE_URL"),
|
||||
username: "postgres",
|
||||
password: "postgres",
|
||||
database: "asciinema_development",
|
||||
|
@ -1,4 +1,5 @@
|
||||
RAILS_ENV=development
|
||||
MIX_ENV=dev
|
||||
BASE_URL=http://localhost:3000
|
||||
SECRET_KEY_BASE=19c70247f4034dd5ce4f3d6bd3b2b592624b63439d518367de9add564fdee9e6b8513f6cec24c2a933a84ea639136786813bb70d3dc4e84a365205a52e5bf1fa
|
||||
LEIN_ROOT=yes
|
||||
|
@ -3,6 +3,8 @@ version: '3'
|
||||
volumes:
|
||||
bundle:
|
||||
m2:
|
||||
node_modules:
|
||||
build:
|
||||
|
||||
services:
|
||||
postgres:
|
||||
@ -30,9 +32,13 @@ services:
|
||||
ports:
|
||||
- 3000:3000
|
||||
- 4000:4000
|
||||
- 5000:5000
|
||||
- 44444:44444
|
||||
volumes:
|
||||
- ../uploads:/app/uploads
|
||||
- ../uploads:/app/uploads:cached
|
||||
- ../deps:/app/deps:cached
|
||||
- bundle:/bundle:cached
|
||||
- node_modules:/app/node_modules:cached
|
||||
- build:/app/_build:cached
|
||||
- m2:/root/.m2:cached
|
||||
- ../:/app:cached
|
||||
|
Loading…
Reference in New Issue
Block a user