-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
35 lines (33 loc) · 1.23 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# For testing the front-end, back-end, and Stripe Test integration
services:
# Front-end + Back-end running on http://localhost:4443
donatemask:
container_name: donatemask
build:
context: .
args:
# Add overrides for the Stripe product links to use test endpoints.
# The ebook links all point to a $5.00 test product that redirects to the ebook download
- STRIPE_EBOOK_LINK=https://buy.stripe.com/test_14k6pX6xa1Z51uUaEF
# All mask purchases use a $5.00 test product that shows a final confirmation
- STRIPE_MASK_LINK=https://buy.stripe.com/test_bIYbKhbRugTZa1q7ss
init: true
environment:
- PORT=4443
- WEB_URL=http://localhost:4443
# Use the Dockerized mongo instance for testing
- ATLAS_URI=mongodb://root:password@mongodb:27017
# Serve the web site from the express server (same origin)
- USE_STATIC_HOSTING=1
# Forward these from the host environmnet (should be set already)
- STRIPE_API_KEY
- STRIPE_PRICE_ID
ports:
- "4443:4443"
# Testing instance of MongoDB
mongodb:
container_name: mongodb
image: mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=password