File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 1
1
DB_USER = postgres
2
2
DB_PASSWORD = postgres
3
3
DB_PORT = 5432
4
- HASURA_GRAPHQL_ADMIN_SECRET = helloworld
4
+ HASURA_GRAPHQL_ADMIN_SECRET = helloworld
5
+
6
+ DATABASE_URL = " ecto://postgres:postgres@db:5432/fileonchain?ssl=false"
7
+ SECRET_KEY_BAS = helloworld
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ config :fileonchain,
14
14
# Configures the endpoint
15
15
config :fileonchain , FileonchainWeb.Endpoint ,
16
16
url: [ host: System . get_env ( "PHX_HOST" ) || "localhost" ] ,
17
+ check_origin: [ System . get_env ( "PHX_HOST" ) || "localhost" ]
17
18
adapter : Bandit . PhoenixAdapter ,
18
19
render_errors: [
19
20
formats: [ html: FileonchainWeb.ErrorHTML , json: FileonchainWeb.ErrorJSON ] ,
Original file line number Diff line number Diff line change @@ -29,4 +29,19 @@ services:
29
29
- " 8080:8080"
30
30
command :
31
31
- graphql-engine
32
- - serve
32
+ - serve
33
+
34
+ app :
35
+ container_name : app
36
+ build :
37
+ context : .
38
+ dockerfile : Dockerfile
39
+ environment :
40
+ MIX_ENV : prod
41
+ DATABASE_URL : ${DATABASE_URL}
42
+ SECRET_KEY_BASE : ${SECRET_KEY_BASE}
43
+ PHX_HOST : localhost
44
+ ports :
45
+ - " 4000:4000"
46
+ depends_on :
47
+ - db
You can’t perform that action at this time.
0 commit comments