-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (52 loc) · 1.22 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
version: '2'
services:
database:
container_name: database
build: database
command: --default-authentication-plugin=mysql_native_password
volumes:
- wallet-data:/var/lib/mysql
backend:
container_name: backend
restart: unless-stopped
build: backend
depends_on:
- database
volumes:
- ./backend:/app
- ./dist:/app/dist
- ./logs:/root/.pm2/logs:Z
command: bash -c "cd /app && npm install && node index.js"
environment:
- MYSQL_HOST=database
- MYSQL_USER=root
- MYSQL_PASSWORD=root
- MYSQL_PORT=3306
- MYSQL_DATABASE=wallet
- APP_ID=${APP_ID}
- API_KEY=${API_KEY}
- DEV_URL=http://localhost:${SERVER_PORT}
- PRO_URL=${PROD_URL}
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET}
- SECRET=${SECRET}
- MODE=${MODE}
- FRONTEND_PORT=${FRONTEND_PORT}
frontend:
container_name: frontend
build: frontend
volumes:
- dist:/app/dist
service:
container_name: service
build: service
depends_on:
- backend
- frontend
ports:
- ${SERVER_PORT}:80
volumes:
- dist:/frontend
volumes:
dist:
wallet-data: