-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
67 lines (63 loc) · 1.59 KB
/
docker-compose.yaml
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
version: '3.7'
services:
db:
image: mysql:8.0
container_name: empathi-care-db
environment:
MYSQL_ROOT_PASSWORD: ${DBPASS}
MYSQL_DATABASE: ${DBNAME}
networks:
- mynet
ports:
- '3306:3306'
healthcheck:
test: ["CMD", "mysql", "-u$DBUSER", "-p$DBPASS", "-e", "show databases;"]
interval: 60s
phpmyadmin:
image: phpmyadmin/phpmyadmin:5.0.2
networks:
- mynet
ports:
- "8001:80"
environment:
PMA_HOST: db
depends_on:
db:
condition: service_healthy
required: true
api:
image: irvanhau/empathicare
container_name: empathi-care-app
depends_on:
db:
condition: service_healthy
required: true
environment:
- DBUSER=${DBUSER}
- DBPASS=${DBPASS}
- DBHOST=db
- DBPORT=${DBPORT}
- DBNAME=${DBNAME}
- SERVER=${SERVER}
- SECRET=${SECRET}
- REFSECRET=${REFSECRET}
- MT_SERVER_KEY=${MT_SERVER_KEY}
- MT_CLIENT_KEY=${MT_CLIENT_KEY}
- MT_ENV=${MT_ENV}
- OAUTH_GOOGLE_CLIENT_ID=${OAUTH_GOOGLE_CLIENT_ID}
- OAUTH_GOOGLE_CLIENT_SECRET=${OAUTH_GOOGLE_CLIENT_SECRET}
- OAUTH_GOOGLE_REDIRECT_URL=${OAUTH_GOOGLE_REDIRECT_URL}
- CloudURL=${CloudURL}
- EMAIL_SENDER=${EMAIL_SENDER}
- EMAIL_PASSWORD_SENDER=${EMAIL_PASSWORD_SENDER}
- BASE_URL_FE=${BASE_URL_FE}
- KEY_OPEN_AI=${KEY_OPEN_AI}
- DB_MONGO_URL=${DB_MONGO_URL}
- DB_MONGO_NAME=${DB_MONGO_NAME}
ports:
- '80:80'
networks:
- mynet
networks:
mynet:
driver: bridge