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", username: "postgres",
password: "postgres", password: "postgres",
database: "philomena_dev", database: "philomena_dev",
hostname: "localhost", hostname: "postgres",
show_sensitive_data_on_connection_error: true, show_sensitive_data_on_connection_error: true,
pool_size: 10 pool_size: 10
config :philomena,
elasticsearch_url: "http://elasticsearch:9200"
# For development, we disable any cache and enable # For development, we disable any cache and enable
# debugging and code reloading. # debugging and code reloading.
# #

View file

@ -10,7 +10,7 @@
# if it's not done doing whatever it does yet # if it's not done doing whatever it does yet
echo -n "Waiting for Elasticsearch" echo -n "Waiting for Elasticsearch"
until wget -qO - localhost:9200; do until wget -qO - elasticsearch:9200; do
echo -n "." echo -n "."
sleep 2 sleep 2
done done
@ -18,7 +18,7 @@ done
echo echo
# Try to create the database if it doesn't exist yet # 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 # Run the application
mix phx.server mix phx.server

View file

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