-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.live.yml
142 lines (136 loc) · 3.92 KB
/
docker-compose.live.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
#TODO: A docker compose file whice refers to the built docker images, and doesn't build them itself
version: '2'
services:
mywell-gql:
container_name: mywell-gql
image: ldaly/mywell-gql:latest
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"
labels:
- "traefik.port=3001"
- "traefik.docker.network=base-network"
- "traefik.frontend.rule=Host:${STAGE_PREFIX}mywell-gql.vessels.tech"
- "traefik.protocol=http"
mywell-utils:
container_name: mywell-utils
image: ldaly/mywell-utils:latest
command: tail -f /dev/null
mywell-server:
container_name: mywell-server
image: ldaly/mywell-server:latest
ports:
- "3000:3000"
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
labels:
- "traefik.port=3000"
- "traefik.docker.network=base-network"
# - "traefik.frontend.rule=${TEMP_SERVER_FRONTEND_RULE}"
- "traefik.frontend.rule=Host:${STAGE_PREFIX}mywell-server.vessels.tech"
- "traefik.protocol=http"
mywell-ui:
container_name: mywell-ui
image: ldaly/mywell-ui:latest
ports:
- 8080:80
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
labels:
- "traefik.port=80"
- "traefik.docker.network=base-network"
# - "traefik.frontend.rule=Host:${STAGE_PREFIX}mywell.vessels.tech,${STAGE_PREFIX}mywell.marvi.org.in"
- "traefik.frontend.rule=Host:${STAGE_PREFIX}mywell.vessels.tech"
- "traefik.protocol=http"
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
traefik:
image: traefik:1.6.0
restart: always
ports:
- 80:80
- 443:443
- 8081:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/tmp:/etc/traefik/acme
# command: --api --docker
command: >-
--entryPoints='Name:http Address::80 Redirect.EntryPoint:https' \
--entryPoints='Name:https Address::443 TLS' \
--defaultEntryPoints=http,https \
--acme.entryPoint=https \
--acme.httpChallenge.entryPoint=http \
--acme.storage=/etc/traefik/acme/acme.json \
--acme.domains=vessels.tech \
--acme.onHostRule=true \
--docker \
--docker.domain=vessels.tech \
--docker.watch \
--logLevel=DEBUG \
--web