generated from kevenleone/monorepo
-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
61 lines (61 loc) · 1.43 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
version: '3'
services:
mysql:
image: mysql:5.7
container_name: mysql
environment:
MYSQL_DATABASE: liferay-grow
MYSQL_USER: root
MYSQL_ROOT_PASSWORD: root
MYSQL_PASSWORD: root
volumes:
- liferay-grow-db:/var/lib/mysql
restart: 'always'
api:
build: ./packages/backend
container_name: liferay-grow-api
environment:
APP_NAME: Liferay Grow
HTTP_PORT: 3333
GITHUB_CLIENT_ID: ${CLIENT_ID}
GITHUB_CLIENT_SECRET: ${CLIENT_SECRET}
JWT_SECRET: ${JWT_SECRET}
NODE_ENV: production
TYPEORM_CONNECTION: mysql
TYPEORM_HOST: mysql
TYPEORM_USERNAME: root
TYPEORM_PASSWORD: root
TYPEORM_DATABASE: liferay-grow
TYPEORM_PORT: 3306
TYPEORM_SYNCHRONIZE: "true"
TYPEORM_LOGGING: "false"
TYPEORM_ENTITIES: dist/src/entity/*.js
TYPEORM_MIGRATIONS: dist/src/migration/*.js
AUTH_MIDDLEWARE_ENABLED: "true"
VALIDATE_LIFERAY_ORG: "true"
depends_on:
- mysql
web:
build: ./packages/frontend
container_name: liferay-grow-frontend
depends_on:
- api
- mysql
nginx:
container_name: nginx
build:
context: ./nginx
args:
- DOMAIN_LIST=${DOMAIN_LIST}
restart: always
volumes:
- ./nginx/config/conf.d/prod:/etc/nginx/conf.d
ports:
- "80:80"
- "443:443"
depends_on:
- api
- mysql
- web
volumes:
liferay-grow-db: