Chore: update docker compose and config for runable on macos

This commit is contained in:
Hien To 2023-08-28 14:31:18 +07:00
parent cfc38860bb
commit cf367d8074
2 changed files with 7 additions and 6 deletions

View File

@ -11,10 +11,10 @@ NEXT_PUBLIC_POSTHOG_API_KEY=
NEXT_PUBLIC_SENTRY_DNS= NEXT_PUBLIC_SENTRY_DNS=
KEYCLOAK_CLIENT_ID=hasura KEYCLOAK_CLIENT_ID=hasura
KEYCLOAK_CLIENT_SECRET=oMtCPAV7diKpE564SBspgKj4HqlKM4Hy 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_URL=http://localhost:3000
NEXTAUTH_SECRET=my-secret NEXTAUTH_SECRET=my-secret
END_SESSION_URL=http://172.20.0.9:8088/realms/hasura/protocol/openid-connect/logout END_SESSION_URL=http://localhost:8088/realms/hasura/protocol/openid-connect/logout
REFRESH_TOKEN_URL=http://172.20.0.9:8088/realms/hasura/protocol/openid-connect/token REFRESH_TOKEN_URL=http://localhost:8088/realms/hasura/protocol/openid-connect/token
HASURA_ADMIN_TOKEN=myadminsecretkey HASURA_ADMIN_TOKEN=myadminsecretkey
NEXT_PUBLIC_GRAPHQL_ENGINE_URL=localhost:8080 NEXT_PUBLIC_GRAPHQL_ENGINE_URL=localhost:8080

View File

@ -30,7 +30,7 @@ services:
ipv4_address: 172.20.0.9 ipv4_address: 172.20.0.9
keycloak_postgres: keycloak_postgres:
image: postgres:13 image: postgres:15
command: postgres -c 'max_connections=200' && postgres -c 'shared_buffers=24MB' command: postgres -c 'max_connections=200' && postgres -c 'shared_buffers=24MB'
environment: environment:
# Environment Variables expecially for Postgres # Environment Variables expecially for Postgres
@ -50,7 +50,7 @@ services:
ipv4_address: 172.20.0.10 ipv4_address: 172.20.0.10
postgres: postgres:
image: postgres:13 image: postgres:15
restart: always restart: always
# volumes: # volumes:
# - db_data:/var/lib/postgresql/data # - db_data:/var/lib/postgresql/data
@ -129,7 +129,8 @@ services:
- "3000:3000" - "3000:3000"
environment: environment:
NODE_ENV: development NODE_ENV: development
extra_hosts:
- "localhost:172.20.0.9"
networks: networks:
jan_community: jan_community:
ipv4_address: 172.20.0.15 ipv4_address: 172.20.0.15