-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.61 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: "3.5"
# This docker-compose file deploys the backend application: the database,
# the server, and the mock external services. This can be used to easily run
# the entire backend application in order to develop the frontend, or to
# write Cypress tests.
#
# NOTE: It would be great if this docker-compose could deploy the
# external-services as a separate service like the other docker-compose
# files, however there is an annoying issue with the Google authentication
# redirects during user signup that make this problematic, so here the
# server and external-services are both run concurrently in the services
# service.
services:
db:
image: postgres:11.2
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
expose:
- 5432
ports:
- 5432:5432
redis:
image: "bitnami/redis:latest"
environment:
REDIS_PASSWORD: redis-dev-password
ports:
- 6379:6379
stripe:
image: stripe/stripe-cli
command: --api-key sk_test_mbG9wVyUhddtlRfqjtLJfRvZ00ZFBbvNDQ listen --forward-to=services:9000/payments/stripe-webhook
services:
build:
context: .
dockerfile: docker/Dockerfile.Runtime
image: pairwise-dev-runtime
command: dockerize -wait tcp://db:5432 -timeout 10s yarn pairwise
environment:
TYPEORM_HOST: db
REDIS_PORT: 6379
REDIS_HOST: redis
WHITELISTED_ADMIN_EMAILS: [email protected]
DANGEROUSLY_WHITELISTED_PUBLIC_ADMIN_ACCESS_TOKEN: test_token
expose:
- 9000
ports:
- 7000:7000
- 9000:9000
depends_on:
- db
- stripe