-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
120 lines (115 loc) · 3 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
version: '2'
services:
# mywell-console:
# container_name: mywell-console
# build: ./mywell-console/
# image: mywell-console:local
# ports:
# - 3002:3000
# volumes:
# - ./mywell-console:/usr/src/app
# - ./mywell-console/node_modules:/usr/src/app/node_modules
# environment:
# - REACT_APP_GRAPHQL_ENDPOINT
# # command: tail -f /dev/null
mywell-gql:
container_name: mywell-gql
build: ./mywell-gql/
image: mywell-gql:local
ports:
- 3001:3001
# volumes:
# - ./mywell-gql/:/usr/src/app/
environment:
- PORT=3001
- DB_HOST
- DB_NAME
- DB_PASSWORD
- DB_USER
links:
- db:db
command: "npm run local"
mywell-utils:
container_name: mywell-utils
build: ./mywell-utils/
image: mywell-utils:local
command: tail -f /dev/null
mywell-server:
container_name: mywell-server
build: ./mywell-server/
image: mywell-server:local
ports:
- "3000:3000"
volumes:
# - ./mywell-server:/usr/src/app
# - ./mywell-server/node_modules:/usr/src/app/node_modules
- ~/.aws:/root/.aws
command: "nodemon -L ."
environment:
- "TERM=xterm-256color"
- VIRTUAL_HOST=mywell-server.marvi.org.in
- HTTPS_METHOD=redirect
- VIRTUAL_PORT=3000
- LETSENCRYPT_HOST=mywell-server.marvi.org.in
- ENABLE_NOTIFICATIONS
- DB_HOST
- DB_NAME
- DB_PASSWORD
- DB_USER
- TWILIO_ACCOUNT_SID
- TWILIO_AUTH_TOKEN
- TWILIO_PHONE_NUMBER
- SMS_HORIZON_USER
- SMS_HORIZON_KEY
- AWS_PROFILE=vessels-lewis.daly
- FIREBASE_BASE_URL
- OUR_WATER_ORG_ID
- REACT_APP_FB_API_KEY
- REACT_APP_FB_AUTH_DOMAIN
- REACT_APP_FB_DATABASE_URL
- REACT_APP_FB_PROJECT_ID
- REACT_APP_FB_STORAGE_BUCKET
links:
- db:db
mywell-ui:
container_name: mywell-ui
build: ./mywell-ui/
image: mywell-ui:local
ports:
- "8080:80"
# volumes:
# - ./mywell-ui:/usr/src/app
# command: npm run webpack_dev_server
command: "./build_and_run.sh"
environment:
- VIRTUAL_HOST=mywell.marvi.org.in
- HTTPS_METHOD=redirect
- VIRTUAL_PORT=80
#Tells nodemon server which port we are looking for
- PORT=80
- LETSENCRYPT_HOST=mywell.marvi.org.in
- ENVIRONMENT
- ENABLE_LOGS
- VERSION_NUMBER
- SERVER_URL
- REACT_APP_GRAPHQL_ENDPOINT
- UI_BUCKET_NAME
- REACT_APP_FB_API_KEY
- REACT_APP_FB_AUTH_DOMAIN
- REACT_APP_FB_DATABASE_URL
- REACT_APP_FB_PROJECT_ID
- REACT_APP_FB_STORAGE_BUCKET
db:
container_name: mywell-db
image: mariadb:10.0
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=mywell
- MYSQL_USER=mywell
- MYSQL_PASSWORD=password
expose:
- 3306
volumes:
- ./mywell-db/server/boot/db:/docker-entrypoint-initdb.d