-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
98 lines (93 loc) · 2.13 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
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
97
98
version: "3.8"
services:
postgresql:
container_name: postgresql
restart: always
build: ./packages/postgresql
environment:
- POSTGRES_USER=${DATABASE_USER}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
- POSTGRES_DB=${DATABASE_DB}
ports:
- "5432:5432"
migration:
container_name: migration
build:
context: ./packages/migration
dockerfile: Dockerfile.dev
links:
- postgresql
environment:
- DATABASE_USER
- DATABASE_PASSWORD
- DATABASE_DB
- DATABASE_HOST
- DATABASE_PORT
depends_on:
- postgresql
- graphql
graphql:
container_name: graphql
restart: always
build:
context: ./packages/graphql
dockerfile: Dockerfile.dev
environment:
- DATABASE_URL
- DATABASE_USER
- DATABASE_PASSWORD
- DATABASE_DB
- DATABASE_HOST
- DATABASE_PORT
- GOOGLE_APPLICATION_CREDENTIALS
- FIREBASE_API_KEY
- FIREBASE_AUTH_DOMAIN
- FIREBASE_DATABASE_URL
- FIREBASE_PROJECT_ID
- FIREBASE_STORAGE_BUCKET
- FIREBASE_MESSAGING_SENDER_ID
- FIREBASE_APP_ID
- FIREBASE_MEASUREMENT_ID
ports:
- "3001:3001"
depends_on:
- postgresql
volumes:
- server:/usr/share/server/data
web:
container_name: web
restart: always
build:
context: ./packages/web
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
links:
- graphql
depends_on:
- postgresql
- graphql
- migration
volumes:
- "./packages/web:/web"
- "/web/node_modules"
environment:
- CHOKIDAR_USEPOLLING=true
- REACT_APP_FIREBASE_API_KEY
- REACT_APP_FIREBASE_AUTH_DOMAIN
- REACT_APP_FIREBASE_DATABASE_URL
- REACT_APP_FIREBASE_PROJECT_ID
- REACT_APP_FIREBASE_STORAGE_BUCKET
- REACT_APP_FIREBASE_MESSAGING_SENDER_ID
- REACT_APP_FIREBASE_APP_ID
- REACT_APP_FIREBASE_MEASUREMENT_ID
- REACT_APP_GRAPHQL_URI
- REACT_APP_IP_IFY_API_KEY
- SKIP_PREFLIGHT_CHECK
volumes:
front:
driver: local
data01:
driver: local
server:
driver: local