-
Notifications
You must be signed in to change notification settings - Fork 226
/
docker-compose.yml
58 lines (52 loc) · 1.16 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
version: "3.4"
x-common-variables: &common-variables
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
pg_sandbox_data:
pg_production_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:
- 5001:5001
environment:
<<: *common-variables
PLAID_CLIENT_ID:
PLAID_SECRET_SANDBOX:
PLAID_SECRET_PRODUCTION:
PLAID_SANDBOX_REDIRECT_URI:
PLAID_PRODUCTION_REDIRECT_URI:
PLAID_ENV:
PORT: 5001
DB_PORT: 5432
DB_HOST_NAME: db
depends_on:
- db
ngrok:
build: ./ngrok
image: plaidinc/pattern-ngrok:1.0.7
command: ["ngrok", "http", "server:5001"]
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_SERVER_PORT: 5001
depends_on:
- server