Skip to content

Commit

Permalink
Merge pull request #182 from IFRCGo/feat/update-docker-compose
Browse files Browse the repository at this point in the history
Feat/update docker compose
  • Loading branch information
barshathakuri authored Dec 5, 2024
2 parents 9bb3e12 + edbca20 commit 4eb0c96
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docker-compose-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ x-server: &base_server_setup
# Static, Media configs
DJANGO_STATIC_URL: ${DJANGO_STATIC_URL:-/dj-static/}
DJANGO_MEDIA_URL: ${DJANGO_MEDIA_URL-/dj-media/}
# Misc
HCAPTCHA_SECRET: ${HCAPTCHA_SECRET?error}
HCAPTCHA_SITEKEY: ${HCAPTCHA_SITEKEY?error}
volumes:
- ./geographical_data/:/code/apps/cap_feed/geographical/ifrc-go-admin1-geojson/
- backend_data:/data/
Expand Down Expand Up @@ -98,6 +101,8 @@ services:
APP_GRAPHQL_API_ENDPOINT: ${FRONTEND_APP_GRAPHQL_API_ENDPOINT?error}
APP_MAPBOX_ACCESS_TOKEN: ${FRONTEND_APP_MAPBOX_ACCESS_TOKEN?error}
APP_GRAPHQL_CODEGEN_ENDPOINT: ${FRONTEND_APP_GRAPHQL_CODEGEN_ENDPOINT?error}
env_file:
- .env
command: |
sh -c 'pnpm generate && pnpm build && rm -rf /client-build/* ; cp -r build/* /client-build/'
volumes:
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,16 @@ x-server: &base_server_setup
# Redis config
CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://redis:6379/0}
CACHE_REDIS_URL: ${CACHE_REDIS_URL:-redis://redis:6379/1}
TEST_CACHE_REDIS_URL: ${TEST_CACHE_REDIS_URL:-redis://redis:6379/11}
# Email config
EMAIL_HOST: ${EMAIL_HOST:-mailpit}
EMAIL_PORT: ${EMAIL_PORT:-1025}
EMAIL_HOST_USER: ${EMAIL_HOST_USER:-mailpit}
EMAIL_HOST_PASSWORD: ${EMAIL_HOST_PASSWORD:-mailpit}
DEFAULT_FROM_EMAIL: ${DEFAULT_FROM_EMAIL:-alert-hub-dev <[email protected]>}
# Misc
HCAPTCHA_SECRET: ${HCAPTCHA_SECRET:-0x0000000000000000000000000000000000000000}
HCAPTCHA_SITEKEY: ${HCAPTCHA_SITEKEY:-10000000-ffff-ffff-ffff-000000000001}
volumes:
- ./backend/:/code
- backend_data:/data/
Expand Down

0 comments on commit 4eb0c96

Please sign in to comment.