Created
August 3, 2023 10:32
-
-
Save OlegChuev/f0b8fdcc95d56e79e61272a8a4522fca to your computer and use it in GitHub Desktop.
Docker Compose Stripe CLI
This file contains 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
... | |
# stripe-cli will automatically pick up STRIPE_API_KEY from dev.env file | |
STRIPE_API_KEY=sk_test_... | |
... |
This file contains 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
version: '3.9' | |
services: | |
web: | |
build: . | |
volumes: | |
- ./:/app | |
ports: | |
- 3000:3000 | |
stripe-cli: | |
image: stripe/stripe-cli | |
container_name: stripe-cli | |
command: "listen --device-name ${STRIPE_DEVICE_NAME} --forward-to web:3000/${YOUR_API_END_POINT_FOR_WEBHOOKS}" | |
env_file: | |
- .env | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment