-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
60 lines (54 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: "3.4"
x-common-variables: &common-variables
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
pg_sandbox_data:
pg_development_data:
services:
db:
image: postgres:11.2
volumes:
- ./database/init:/docker-entrypoint-initdb.d
- "pg_${PLAID_ENV}_data:/var/lib/postgresql/data"
ports:
- 5432:5432
environment: *common-variables
server:
build: ./server
image: plaidinc/pattern-server:1.0.7
ports:
- 5000:5000
environment:
<<: *common-variables
PLAID_CLIENT_ID:
PLAID_SECRET_SANDBOX:
PLAID_SECRET_DEVELOPMENT:
IS_PROCESSOR:
PLAID_SANDBOX_REDIRECT_URI:
PLAID_DEVELOPMENT_REDIRECT_URI:
PLAID_ENV:
PORT: 5000
DB_PORT: 5432
DB_HOST_NAME: db
depends_on:
- db
ngrok:
build: ./ngrok
image: plaidinc/pattern-ngrok:1.0.7
command: ["ngrok", "http", "server:5000"]
ports:
- 4040:4040
depends_on:
- server
client:
build: ./client
image: plaidinc/pattern-client:1.0.7
ports:
- 3001:3001
environment:
REACT_APP_PLAID_ENV: ${PLAID_ENV}
REACT_APP_IS_PROCESSOR: ${IS_PROCESSOR}
REACT_APP_SERVER_PORT: 5000
depends_on:
- server