fix non-podman setup

This commit is contained in:
byte[] 2019-12-03 17:56:26 -05:00
parent de5868f5ad
commit d73c2b7131
3 changed files with 7 additions and 4 deletions

View file

@ -5,10 +5,13 @@ config :philomena, Philomena.Repo,
username: "postgres",
password: "postgres",
database: "philomena_dev",
hostname: "localhost",
hostname: "postgres",
show_sensitive_data_on_connection_error: true,
pool_size: 10
config :philomena,
elasticsearch_url: "http://elasticsearch:9200"
# For development, we disable any cache and enable
# debugging and code reloading.
#

View file

@ -10,7 +10,7 @@
# if it's not done doing whatever it does yet
echo -n "Waiting for Elasticsearch"
until wget -qO - localhost:9200; do
until wget -qO - elasticsearch:9200; do
echo -n "."
sleep 2
done
@ -18,7 +18,7 @@ done
echo
# Try to create the database if it doesn't exist yet
createdb -h localhost -U postgres philomena_dev && mix ecto.setup_dev
createdb -h postgres -U postgres philomena_dev && mix ecto.setup_dev
# Run the application
mix phx.server

View file

@ -1,5 +1,5 @@
upstream philomena {
server localhost:4000 fail_timeout=0;
server app:4000 fail_timeout=0;
}
server {