From cf367d8074347e6136f37bf403f7285ef302a575 Mon Sep 17 00:00:00 2001 From: Hien To <> Date: Mon, 28 Aug 2023 14:31:18 +0700 Subject: [PATCH] Chore: update docker compose and config for runable on macos --- conf/sample.env_web-client | 6 +++--- docker-compose.yml | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/conf/sample.env_web-client b/conf/sample.env_web-client index 37844ace3..cf186d529 100644 --- a/conf/sample.env_web-client +++ b/conf/sample.env_web-client @@ -11,10 +11,10 @@ NEXT_PUBLIC_POSTHOG_API_KEY= NEXT_PUBLIC_SENTRY_DNS= KEYCLOAK_CLIENT_ID=hasura KEYCLOAK_CLIENT_SECRET=oMtCPAV7diKpE564SBspgKj4HqlKM4Hy -AUTH_ISSUER=http://172.20.0.9:8088/realms/hasura +AUTH_ISSUER=http://localhost:8088/realms/hasura NEXTAUTH_URL=http://localhost:3000 NEXTAUTH_SECRET=my-secret -END_SESSION_URL=http://172.20.0.9:8088/realms/hasura/protocol/openid-connect/logout -REFRESH_TOKEN_URL=http://172.20.0.9:8088/realms/hasura/protocol/openid-connect/token +END_SESSION_URL=http://localhost:8088/realms/hasura/protocol/openid-connect/logout +REFRESH_TOKEN_URL=http://localhost:8088/realms/hasura/protocol/openid-connect/token HASURA_ADMIN_TOKEN=myadminsecretkey NEXT_PUBLIC_GRAPHQL_ENGINE_URL=localhost:8080 diff --git a/docker-compose.yml b/docker-compose.yml index 1857b385d..8deacbd16 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -30,7 +30,7 @@ services: ipv4_address: 172.20.0.9 keycloak_postgres: - image: postgres:13 + image: postgres:15 command: postgres -c 'max_connections=200' && postgres -c 'shared_buffers=24MB' environment: # Environment Variables expecially for Postgres @@ -50,7 +50,7 @@ services: ipv4_address: 172.20.0.10 postgres: - image: postgres:13 + image: postgres:15 restart: always # volumes: # - db_data:/var/lib/postgresql/data @@ -129,7 +129,8 @@ services: - "3000:3000" environment: NODE_ENV: development - + extra_hosts: + - "localhost:172.20.0.9" networks: jan_community: ipv4_address: 172.20.0.15