-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-dev.yml
96 lines (90 loc) · 2.1 KB
/
docker-compose-dev.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3.7'
services:
data:
build:
context: ./data
dockerfile: Dockerfile
volumes:
- './data:/app'
ports:
- '5000:5000'
environment:
- POSTGRES_USER=stocks_admin
- POSTGRES_PASSWORD=stocks_admin
- POSTGRES_HOST=postgres
- POSTGRES_DB=stocks_db
- FMP_API_KEY=e2d9d13e5b7ac7976216133f32d7f775
depends_on:
- postgres
users:
container_name: users
build:
context: ./users
dockerfile: Dockerfile
volumes:
- './users:/app'
- '/app/node_modules'
ports:
- '5001:5001'
environment:
- JWT_KEY=stocks_jwt
- JWT_EXPIRES=1h
- JWT_EXPIRES_HOUR=1
- REFRESH_SECRET=stocks_refresh_jwt
- REFRESH_EXPIRES=30h
- GOOGLE_CLIENT_ID=297422208742-5pt82cje5dvp2701a60ngllvd2cul08g.apps.googleusercontent.com
- GOOGLE_CLIENT_SECRET=GBN4_GuUKpsPGgUlesgPctVp
- FACEBOOK_CLIENT_ID=2892497347641862
- FACEBOOK_CLIENT_SECRET=f93af30a2ff9b82e39f688a9e082a2c9
- POSTGRES_USER=stocks_admin
- POSTGRES_PASSWORD=stocks_admin
- POSTGRES_HOST=postgres
- POSTGRES_DB=stocks_db
- APP_DOMAIN=localhost
depends_on:
- postgres
client:
build:
context: ./client
dockerfile: Dockerfile
args:
env: 'DEV'
ports:
- '3000:3000'
environment:
- NODE_ENV=development
- REACT_APP_MODE=development
- REACT_APP_BUILD=development
- REACT_APP_DOMAIN=localhost
volumes:
- './client:/app'
- '/app/node_modules'
depends_on:
- users
postgres:
image: postgres
container_name: postgres
ports:
- '5432:5432'
environment:
- POSTGRES_DB=stocks_db
- POSTGRES_USER=stocks_admin
- POSTGRES_PASSWORD=stocks_admin
volumes:
- pg-data:/var/lib/postgresql/data
restart: always
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- '80:80'
- '443:443'
command: [nginx-debug, '-g', 'daemon off;']
depends_on:
- client
- users
- data
volumes:
pg-data:
driver: local