Created
October 20, 2023 15:25
-
-
Save suenot/8744956a575e0a4c5a80450324213b24 to your computer and use it in GitHub Desktop.
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
``` | |
export DOCKERHOST=149.102.136.233 && export DEEPLINKS_PORT=3006 && export DEEPCASE_PORT=3007 && export DEEPLINKS_PUBLIC_URL=http://localhost:3006 && export DEEPLINKS_HASURA_STORAGE_URL=http://localhost:8000 && export RESTORE_VOLUME_FROM_SNAPSHOT=1 && export MANUAL_MIGRATIONS=0 && export npm_config_yes=true && export JWT_SECRET='{"type":"HS256","key":"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R"}' && export HASURA_GRAPHQL_DATABASE_URL=postgres://postgres:postgrespassword@postgres:5432/postgres && export HASURA_GRAPHQL_ENABLE_CONSOLE=true && export HASURA_GRAPHQL_DEV_MODE=true && export HASURA_GRAPHQL_LOG_LEVEL=debug && export HASURA_GRAPHQL_ENABLED_LOG_TYPES=startup,http-log,webhook-log,websocket-log,query-log && export HASURA_GRAPHQL_ADMIN_SECRET=myadminsecretkey && export HASURA_GRAPHQL_ENABLE_REMOTE_SCHEMA_PERMISSIONS=true && export HASURA_GRAPHQL_UNAUTHORIZED_ROLE=undefined && export POSTGRES_USER=postgres && export POSTGRES_PASSWORD=postgrespassword && export PGGSSENCMODE=disable && export PGSSLMODE=disable && export PGREQUIRESSL=0 && export MINIO_ROOT_USER=minioaccesskey && export MINIO_ROOT_PASSWORD=miniosecretkey && export HASURA_STORAGE_DEBUG=true && export HASURA_METADATA=1 && export HASURA_ENDPOINT=http://host.docker.internal:8080/v1 && export S3_ENDPOINT=http://host.docker.internal:9000 && export S3_ACCESS_KEY=minioaccesskey && export S3_SECRET_KEY=miniosecretkey && export S3_BUCKET=default && export S3_ROOT_FOLDER=default && export POSTGRES_MIGRATIONS=0 && export POSTGRES_MIGRATIONS_SOURCE=postgres://postgres:[email protected]:5432/postgres?sslmode=disable && export MIGRATIONS_ID_TYPE_SQL=bigint && export MIGRATIONS_ID_TYPE_GQL=bigint && export MIGRATIONS_HASURA_SECRET=myadminsecretkey && export DEEPLINKS_HASURA_SECRET=myadminsecretkey && export MIGRATIONS_SCHEMA=public && export MIGRATIONS_RL_TABLE=rl_example__links__reserved && export MIGRATIONS_DATE_TYPE_SQL=timestamp && export RESERVED_LIFETIME_MS=86400000 && export DOCKER_DEEPLINKS_URL=http://host.docker.internal:3006 && export MIGRATIONS_DIR=/tmp/deep && export MIGRATIONS_HASURA_PATH=localhost:8080 && export DEEPLINKS_HASURA_PATH=deep-hasura:8080 && export MIGRATIONS_HASURA_SSL=0 && export DEEPLINKS_HASURA_SSL=0 && export NEXT_PUBLIC_GQL_SSL=0 && export NEXT_PUBLIC_DEEPLINKS_SERVER=http://localhost:3007 && export NEXT_PUBLIC_GQL_PATH=localhost:3006/gql && export MIGRATIONS_DEEPLINKS_URL=http://deep-links:3006 && export PATH='/root/.nvm/versions/node/v18.18.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/root/.nvm/versions/node/v18.18.0/bin' && cd "/root/.nvm/versions/node/v18.18.0/lib/node_modules/@deep-foundation/deeplinks/node_modules/@deep-foundation/hasura/local/" && docker-compose -p deep stop postgres hasura && docker volume create deep-db-data && mkdir -p /tmp/deep && docker pull deepf/deeplinks:main && docker run -v "/tmp/deep":/migrations -v deep-db-data:/data --rm --name links --entrypoint "sh" deepf/deeplinks:main -c "cd / && tar xf /backup/volume.tar --strip 1 && cp /backup/.migrate /migrations/.migrate" && cd "/root/.nvm/versions/node/v18.18.0/lib/node_modules/@deep-foundation/deeplinks" && cd "/root/.nvm/versions/node/v18.18.0/lib/node_modules/@deep-foundation/deeplinks/node_modules/@deep-foundation/hasura/local/" && npm run docker-local && npx -q wait-on --timeout 100000 http-get://localhost:8080/healthz && ( cd /root/.nvm/versions/node/v18.18.0/lib/node_modules/@deep-foundation/deeplinks/local/deepcase ) | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment