Skip to content

Commit

Permalink
improve config and docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-aurele-besner committed Sep 1, 2024
1 parent b9f3578 commit 0da4eb5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 3 additions & 1 deletion config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ config :fileonchain, FileonchainWeb.Endpoint,
formats: [html: FileonchainWeb.ErrorHTML, json: FileonchainWeb.ErrorJSON],
layout: false
],
cache_static_manifest: "priv/static/cache_manifest.json"
cache_static_manifest: "priv/static/cache_manifest.json",
code_reloader: true,
debug_errors: true,

# Configures Swoosh API Client
config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: Fileonchain.Finch
Expand Down
12 changes: 11 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ services:
image: postgres:14
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
networks:
- app_network
ports:
- "${DB_PORT}:${DB_PORT}"
volumes:
Expand All @@ -25,6 +27,8 @@ services:
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: visitor
HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES: "true"
networks:
- app_network
ports:
- "8080:8080"
command:
Expand All @@ -41,7 +45,13 @@ services:
DATABASE_URL: ${DATABASE_URL}
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
PHX_HOST: localhost
networks:
- app_network
ports:
- "4000:4000"
depends_on:
- db
- db

networks:
app_network:
driver: bridge

0 comments on commit 0da4eb5

Please sign in to comment.