mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 05:37:59 +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",
|
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.
|
||||||
#
|
#
|
||||||
|
|
|
@ -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
|
|
@ -1,5 +1,5 @@
|
||||||
upstream philomena {
|
upstream philomena {
|
||||||
server localhost:4000 fail_timeout=0;
|
server app:4000 fail_timeout=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|
Loading…
Reference in a new issue