mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
fix non-podman setup
This commit is contained in:
parent
de5868f5ad
commit
d73c2b7131
3 changed files with 7 additions and 4 deletions
|
@ -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.
|
||||
#
|
||||
|
|
|
@ -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
|
|
@ -1,5 +1,5 @@
|
|||
upstream philomena {
|
||||
server localhost:4000 fail_timeout=0;
|
||||
server app:4000 fail_timeout=0;
|
||||
}
|
||||
|
||||
server {
|
||||
|
|
Loading…
Reference in a new issue