-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (43 loc) · 1.04 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
version: '3.9'
services:
db:
image: mysql
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_RANDOM_ROOT_PASSWORD: ${MYSQL_RANDOM_ROOT_PASSWORD}
ports:
- 3306:3306
server:
build: ./server
image: mango.azurecr.io/mango-server
working_dir: /home/node/app
command: npm run start-prod
ports:
- 3000:3000
depends_on:
- db
environment:
PORT: 3000
TYPEORM_CONNECTION: mysql
TYPEORM_HOST: db
TYPEORM_USERNAME: ${MYSQL_USER}
TYPEORM_PASSWORD: ${MYSQL_PASSWORD}
TYPEORM_DATABASE: ${MYSQL_DATABASE}
TYPEORM_PORT: 3306
TYPEORM_SYNCHRONIZE: 'true'
TYPEORM_LOGGING: 'false'
TYPEORM_ENTITIES: src/**/entity.ts
client:
build: ./client
image: mango.azurecr.io/mango-client
ports:
- 80:80
depends_on:
- server
environment:
NGINX_ENVSUBST_OUTPUT_DIR: /etc/nginx
API_SERVER_HOST: server
API_SERVER_PORT: 3000
PORT: 80