Skip to content

Commit

Permalink
🩹 fix(cgw.env): update PUSH_NOTIFICATIONS_API_SERVICE_ACCOUNT_CLIENT_…
Browse files Browse the repository at this point in the history
…EMAIL

🔒 chore(cgw.env): add JWT_ISSUER and JWT_SECRET for JWT signing and verification
🔑 chore(cgw.env): add FINGERPRINT_ENCRYPTION_KEY for community use
🐳 chore(docker-compose.yml): add cgw-db service for PostgreSQL 14-alpine
📝 chore(docs): update commands to remove containers and volumes
  • Loading branch information
andskur committed Dec 13, 2024
1 parent c449dad commit cd8b230
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
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]
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

0 comments on commit cd8b230

Please sign in to comment.