-
Notifications
You must be signed in to change notification settings - Fork 6
fix: user-redirection-when-vote #726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
de37b29
fix: user-redirection-when-vote
grv-saini-20 9b8bc59
fix: code rabbit suggestion and format
grv-saini-20 4ba35a5
Merge branch 'main' into fix/user-redirection-when-vote
grv-saini-20 f3a44be
Merge branch 'main' into fix/user-redirection-when-vote
grv-saini-20 e725caf
fix: format
grv-saini-20 32c8a80
fix: conflicts
grv-saini-20 dd4d327
fix: some lint errors
grv-saini-20 aa91bb9
fix: lint errors
grv-saini-20 1560136
fix: check
grv-saini-20 ee5c125
fix: lint errors
grv-saini-20 d59be69
fix: code rabbit suggestion
grv-saini-20 c2a84db
fix: code rabbit suggestion
grv-saini-20 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,147 +1,151 @@ | ||
| version: '3.8' | ||
| version: "3.8" | ||
|
|
||
| x-common-host-access: &common-host-access | ||
| extra_hosts: | ||
| - "host.docker.internal:host-gateway" | ||
| dns: | ||
| - 8.8.8.8 | ||
| - 8.8.4.4 | ||
| - 1.1.1.1 | ||
| extra_hosts: | ||
| - "host.docker.internal:host-gateway" | ||
| dns: | ||
| - 8.8.8.8 | ||
| - 8.8.4.4 | ||
| - 1.1.1.1 | ||
|
|
||
| services: | ||
| # PostgreSQL database for registry and evault-core | ||
| postgres: | ||
| image: postgres:15-alpine | ||
| container_name: metastate-postgres | ||
| ports: | ||
| - "5433:5432" | ||
| environment: | ||
| - POSTGRES_USER=postgres | ||
| - POSTGRES_PASSWORD=postgres | ||
| - POSTGRES_MULTIPLE_DATABASES=registry | ||
| volumes: | ||
| - postgres_data:/var/lib/postgresql/data | ||
| - ./db/init-multiple-databases.sh:/docker-entrypoint-initdb.d/init-multiple-databases.sh | ||
| networks: | ||
| - metastate-core-network | ||
| <<: *common-host-access | ||
| healthcheck: | ||
| test: ["CMD-SHELL", "pg_isready -U postgres"] | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 5 | ||
| logging: | ||
| driver: "none" | ||
| # PostgreSQL database for registry and evault-core | ||
| postgres: | ||
| image: postgres:15-alpine | ||
| container_name: metastate-postgres | ||
| ports: | ||
| - "5433:5432" | ||
| environment: | ||
| - POSTGRES_USER=postgres | ||
| - POSTGRES_PASSWORD=postgres | ||
| - POSTGRES_MULTIPLE_DATABASES=registry | ||
| volumes: | ||
| - postgres_data:/var/lib/postgresql/data | ||
| - ./db/init-multiple-databases.sh:/docker-entrypoint-initdb.d/init-multiple-databases.sh | ||
| networks: | ||
| - metastate-core-network | ||
| <<: *common-host-access | ||
| healthcheck: | ||
| test: ["CMD-SHELL", "pg_isready -U postgres"] | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 5 | ||
| logging: | ||
| driver: "none" | ||
|
|
||
| # Neo4j for evault-core graph data | ||
| neo4j: | ||
| image: neo4j:5.15 | ||
| container_name: metastate-neo4j | ||
| ports: | ||
| - "7474:7474" # HTTP | ||
| - "7687:7687" # Bolt | ||
| environment: | ||
| - NEO4J_AUTH=${NEO4J_USER:-neo4j}/${NEO4J_PASSWORD:-neo4j} | ||
| - NEO4J_USER=${NEO4J_USER:-neo4j} | ||
| - NEO4J_PASSWORD=${NEO4J_PASSWORD:-neo4j} | ||
| - NEO4J_dbms_connector_bolt_listen__address=0.0.0.0:7687 | ||
| - NEO4J_dbms_connector_http_listen__address=0.0.0.0:7474 | ||
| - NEO4J_dbms_connector_bolt_advertised__address=neo4j:7687 | ||
| volumes: | ||
| - neo4j_data:/var/lib/neo4j/data | ||
| networks: | ||
| - metastate-core-network | ||
| <<: *common-host-access | ||
| entrypoint: ["/bin/sh", "-c"] | ||
| command: | ||
| - | | ||
| # Remove any stale PID files before starting Neo4j | ||
| rm -f /var/lib/neo4j/run/neo4j.pid 2>/dev/null || true | ||
| rm -f /var/lib/neo4j/data/run/neo4j.pid 2>/dev/null || true | ||
| rm -f /var/lib/neo4j/data/neo4j.pid 2>/dev/null || true | ||
| find /var/lib/neo4j -name "*.pid" -type f -delete 2>/dev/null || true | ||
| find /var/lib/neo4j/data -name "*.pid" -type f -delete 2>/dev/null || true | ||
| exec /startup/docker-entrypoint.sh neo4j | ||
| healthcheck: | ||
| test: ["CMD-SHELL", "cypher-shell -u neo4j -p ${NEO4J_PASSWORD:-neo4j} 'RETURN 1' || exit 1"] | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 10 | ||
| start_period: 30s | ||
| # Neo4j for evault-core graph data | ||
| neo4j: | ||
| image: neo4j:5.15 | ||
| container_name: metastate-neo4j | ||
| ports: | ||
| - "7474:7474" # HTTP | ||
| - "7687:7687" # Bolt | ||
| environment: | ||
| - NEO4J_AUTH=${NEO4J_USER:-neo4j}/${NEO4J_PASSWORD:-neo4j} | ||
| - NEO4J_USER=${NEO4J_USER:-neo4j} | ||
| - NEO4J_PASSWORD=${NEO4J_PASSWORD:-neo4j} | ||
| - NEO4J_dbms_connector_bolt_listen__address=0.0.0.0:7687 | ||
| - NEO4J_dbms_connector_http_listen__address=0.0.0.0:7474 | ||
| - NEO4J_dbms_connector_bolt_advertised__address=neo4j:7687 | ||
| volumes: | ||
| - neo4j_data:/var/lib/neo4j/data | ||
| networks: | ||
| - metastate-core-network | ||
| <<: *common-host-access | ||
| entrypoint: ["/bin/sh", "-c"] | ||
| command: | ||
| - | | ||
| # Remove any stale PID files before starting Neo4j | ||
| rm -f /var/lib/neo4j/run/neo4j.pid 2>/dev/null || true | ||
| rm -f /var/lib/neo4j/data/run/neo4j.pid 2>/dev/null || true | ||
| rm -f /var/lib/neo4j/data/neo4j.pid 2>/dev/null || true | ||
| find /var/lib/neo4j -name "*.pid" -type f -delete 2>/dev/null || true | ||
| find /var/lib/neo4j/data -name "*.pid" -type f -delete 2>/dev/null || true | ||
| exec /startup/docker-entrypoint.sh neo4j | ||
| healthcheck: | ||
| test: | ||
| [ | ||
| "CMD-SHELL", | ||
| "cypher-shell -u neo4j -p ${NEO4J_PASSWORD:-neo4j} 'RETURN 1' || exit 1", | ||
| ] | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 10 | ||
| start_period: 30s | ||
|
|
||
| # Registry service | ||
| registry: | ||
| profiles: | ||
| - core | ||
| build: | ||
| context: . | ||
| dockerfile: ./docker/Dockerfile.registry | ||
| network: host | ||
| container_name: metastate-registry | ||
| ports: | ||
| - "4321:4321" | ||
| environment: | ||
| - NODE_ENV=${NODE_ENV:-production} | ||
| - DATABASE_URL=${REGISTRY_DATABASE_URL:-postgresql://postgres:postgres@postgres:5432/registry} | ||
| - REGISTRY_SHARED_SECRET=${REGISTRY_SHARED_SECRET:-dev-secret-change-me} | ||
| - PUBLIC_REGISTRY_URL=${PUBLIC_REGISTRY_URL:-http://localhost:4321} | ||
| depends_on: | ||
| postgres: | ||
| condition: service_healthy | ||
| networks: | ||
| - metastate-core-network | ||
| <<: *common-host-access | ||
| restart: unless-stopped | ||
| # Registry service | ||
| registry: | ||
| profiles: | ||
| - core | ||
| build: | ||
| context: . | ||
| dockerfile: ./docker/Dockerfile.registry | ||
| network: host | ||
| container_name: metastate-registry | ||
| ports: | ||
| - "4321:4321" | ||
| environment: | ||
| - NODE_ENV=${NODE_ENV:-production} | ||
| - DATABASE_URL=${REGISTRY_DATABASE_URL} | ||
| - REGISTRY_SHARED_SECRET=${REGISTRY_SHARED_SECRET} | ||
| - PUBLIC_REGISTRY_URL=${PUBLIC_REGISTRY_URL} | ||
| depends_on: | ||
| postgres: | ||
| condition: service_healthy | ||
| networks: | ||
| - metastate-core-network | ||
| <<: *common-host-access | ||
| restart: unless-stopped | ||
grv-saini-20 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # eVault Core service | ||
| evault-core: | ||
| profiles: | ||
| - core | ||
| build: | ||
| context: . | ||
| dockerfile: ./docker/Dockerfile.evault-core | ||
| network: host | ||
| container_name: metastate-evault-core | ||
| ports: | ||
| - "3001:3001" # Express (provisioning API) | ||
| - "4000:4000" # Fastify (GraphQL/HTTP) | ||
| environment: | ||
| - NODE_ENV=${NODE_ENV:-production} | ||
| - EXPRESS_PORT=3001 | ||
| - FASTIFY_PORT=4000 | ||
| - PORT=4000 | ||
| - REGISTRY_DATABASE_URL=${REGISTRY_DATABASE_URL:-postgresql://postgres:postgres@postgres:5432/registry} | ||
| - PUBLIC_REGISTRY_URL=${PUBLIC_REGISTRY_URL:-http://registry:4321} | ||
| - REGISTRY_SHARED_SECRET=${REGISTRY_SHARED_SECRET:-dev-secret-change-me} | ||
| - NEO4J_URI=${NEO4J_URI:-bolt://neo4j:7687} | ||
| - NEO4J_USER=${NEO4J_USER:-neo4j} | ||
| - NEO4J_PASSWORD=${NEO4J_PASSWORD:-neo4j} | ||
| - EVAULT_PUBLIC_KEY=${EVAULT_PUBLIC_KEY:-} | ||
| - W3ID=${W3ID:-} | ||
| depends_on: | ||
| postgres: | ||
| condition: service_healthy | ||
| registry: | ||
| condition: service_started | ||
| neo4j: | ||
| condition: service_healthy | ||
| networks: | ||
| - metastate-core-network | ||
| <<: *common-host-access | ||
| restart: unless-stopped | ||
| # eVault Core service | ||
| evault-core: | ||
| profiles: | ||
| - core | ||
| build: | ||
| context: . | ||
| dockerfile: ./docker/Dockerfile.evault-core | ||
| network: host | ||
| container_name: metastate-evault-core | ||
| ports: | ||
| - "3001:3001" # Express (provisioning API) | ||
| - "4000:4000" # Fastify (GraphQL/HTTP) | ||
| environment: | ||
| - NODE_ENV=${NODE_ENV:-production} | ||
| - EXPRESS_PORT=3001 | ||
| - FASTIFY_PORT=4000 | ||
| - PORT=4000 | ||
| - REGISTRY_DATABASE_URL=${REGISTRY_DATABASE_URL} | ||
| - PUBLIC_REGISTRY_URL=${PUBLIC_REGISTRY_URL} | ||
| - REGISTRY_SHARED_SECRET=${REGISTRY_SHARED_SECRET} | ||
| - NEO4J_URI=${NEO4J_URI:-bolt://neo4j:7687} | ||
| - NEO4J_USER=${NEO4J_USER:-neo4j} | ||
| - NEO4J_PASSWORD=${NEO4J_PASSWORD:-neo4j} | ||
| - EVAULT_PUBLIC_KEY=${EVAULT_PUBLIC_KEY:-} | ||
| - W3ID=${W3ID:-} | ||
| depends_on: | ||
| postgres: | ||
| condition: service_healthy | ||
| registry: | ||
| condition: service_started | ||
| neo4j: | ||
| condition: service_healthy | ||
| networks: | ||
| - metastate-core-network | ||
| <<: *common-host-access | ||
| restart: unless-stopped | ||
|
|
||
| volumes: | ||
| postgres_data: | ||
| driver: local | ||
| neo4j_data: | ||
| driver: local | ||
| postgres_data: | ||
| driver: local | ||
| neo4j_data: | ||
| driver: local | ||
|
|
||
| networks: | ||
| metastate-core-network: | ||
| driver: bridge | ||
| driver_opts: | ||
| com.docker.network.bridge.enable_icc: "true" | ||
| com.docker.network.bridge.enable_ip_masquerade: "true" | ||
| ipam: | ||
| config: | ||
| - subnet: 172.28.0.0/16 | ||
| metastate-core-network: | ||
| driver: bridge | ||
| driver_opts: | ||
| com.docker.network.bridge.enable_icc: "true" | ||
| com.docker.network.bridge.enable_ip_masquerade: "true" | ||
| ipam: | ||
| config: | ||
| - subnet: 172.28.0.0/16 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.