Fix Docker front and api ports

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-07-25 17:06:50 +02:00
parent e7ed4706b2
commit df3f08c528
4 changed files with 4 additions and 6 deletions

View file

@ -7,7 +7,7 @@ use Mix.Config
# watchers to your application. For example, we use it # watchers to your application. For example, we use it
# with brunch.io to recompile .js and .css sources. # with brunch.io to recompile .js and .css sources.
config :eventos, EventosWeb.Endpoint, config :eventos, EventosWeb.Endpoint,
http: [port: 4001], http: [port: System.get_env("PORT") || 4001],
debug_errors: true, debug_errors: true,
code_reloader: true, code_reloader: true,
check_origin: false, check_origin: false,

View file

@ -35,4 +35,5 @@ services:
POSTGRES_USER: postgres POSTGRES_USER: postgres
POSTGRES_DATABASE: eventos_dev POSTGRES_DATABASE: eventos_dev
POSTGRES_HOST: postgres POSTGRES_HOST: postgres
PORT: 4000
entrypoint: entrypoint entrypoint: entrypoint

View file

@ -1,3 +0,0 @@
API_HOST=localhost
API_ORIGIN=http://localhost:4001
API_PATH=/api/v1

View file

@ -1,3 +1,3 @@
API_HOST=event.tcit.fr API_HOST=eventos.tld
API_ORIGIN=https://event.tcit.fr API_ORIGIN=https://eventos.tld
API_PATH=/api/v1 API_PATH=/api/v1