Skip to content
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

actualize local setup #170

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions container_env_files/cgw.env
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ AUTH_TOKEN=your_privileged_endpoints_token
LOG_LEVEL=info
# LOG_SILENT=true

# Alerts provider
ALERTS_PROVIDER_SIGNING_KEY=''
ALERTS_PROVIDER_API_KEY=''
ALERTS_PROVIDER_ACCOUNT=''
ALERTS_PROVIDER_PROJECT=''

# Email handling
# Please note that the Safe CGW is currently using Pushwoosh as the email services provider.
# Refer to the provider's official documentation to set up emailing.
Expand All @@ -54,7 +48,7 @@ EMAIL_TEMPLATE_VERIFICATION_CODE=''
# Firebase project
PUSH_NOTIFICATIONS_API_PROJECT=''
# Firebase service account details for authenticating with Google
PUSH_NOTIFICATIONS_API_SERVICE_ACCOUNT_CLIENT_EMAIL=''
PUSH_NOTIFICATIONS_API_SERVICE_ACCOUNT_CLIENT_EMAIL=[email protected]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PUSH_NOTIFICATIONS_API_SERVICE_ACCOUNT_PRIVATE_KEY=''

# Relay Provider
Expand Down Expand Up @@ -85,3 +79,14 @@ STAKING_API_KEY=''
# The testnet staking provider to be used.
# (default='https://api.testnet.kiln.fi')
STAKING_TESTNET_API_KEY=''


# The issuer and secret used to sign and verify JWTs.
JWT_ISSUER=''
JWT_SECRET=''

# Community
FINGERPRINT_ENCRYPTION_KEY=''

POSTGRES_HOST=cgw-db
POSTGRES_DB=postgres
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ services:
- ./data/events-db:/var/lib/postgresql/data
<<: *pghealthcheck

cgw-db:
image: postgres:14-alpine
environment:
POSTGRES_PASSWORD: postgres
volumes:
- ./data/cgw-db:/var/lib/postgresql/data
<<: *pghealthcheck

# Safe Transaction Service
txs-redis:
image: redis:alpine
Expand Down
6 changes: 3 additions & 3 deletions docs/running_locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
- [Brief Docker Crash Course](docker_cheatsheet.md)

**Important Note:** If you followed the guide some time ago, it's recommended to clean the existing data:
- Remove containers: `docker-compose down -v`.
- Remove docker volumes: `docker-compose rm -f -v`.
- Remove containers: `docker compose down -v`.
- Remove docker volumes: `docker compose rm -f -v`.
- Remove `./data` folder, that holds the database.
- Download last versions of the images: `docker-compose pull`
- Download last versions of the images: `docker compose pull`

## Step 1: setup your `.env`

Expand Down
Loading