Skip to content

Commit 0da4eb5

Browse files
improve config and docker compose
1 parent b9f3578 commit 0da4eb5

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

config/prod.exs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ config :fileonchain, FileonchainWeb.Endpoint,
1010
formats: [html: FileonchainWeb.ErrorHTML, json: FileonchainWeb.ErrorJSON],
1111
layout: false
1212
],
13-
cache_static_manifest: "priv/static/cache_manifest.json"
13+
cache_static_manifest: "priv/static/cache_manifest.json",
14+
code_reloader: true,
15+
debug_errors: true,
1416

1517
# Configures Swoosh API Client
1618
config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: Fileonchain.Finch

docker-compose.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ services:
66
image: postgres:14
77
environment:
88
POSTGRES_PASSWORD: ${DB_PASSWORD}
9+
networks:
10+
- app_network
911
ports:
1012
- "${DB_PORT}:${DB_PORT}"
1113
volumes:
@@ -25,6 +27,8 @@ services:
2527
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
2628
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: visitor
2729
HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES: "true"
30+
networks:
31+
- app_network
2832
ports:
2933
- "8080:8080"
3034
command:
@@ -41,7 +45,13 @@ services:
4145
DATABASE_URL: ${DATABASE_URL}
4246
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
4347
PHX_HOST: localhost
48+
networks:
49+
- app_network
4450
ports:
4551
- "4000:4000"
4652
depends_on:
47-
- db
53+
- db
54+
55+
networks:
56+
app_network:
57+
driver: bridge

0 commit comments

Comments
 (0)