-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (37 loc) · 934 Bytes
/
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
version: '2'
services:
mysql:
image: mobicrm-service/mysql:latest
restart: always
# build:
# context: .
# command: mysqld --sql-mode="" --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --default-time-zone='+03:00'
volumes:
- /data/mysql:/var/lib/mysql
# ports:
# - '3306:3306'
environment:
- MYSQL_ROOT_PASSWORD=1706
- MYSQL_USER=root
- MYSQL_PASSWORD=1706
- MYSQL_DATABASE=mobiCRM
backend:
image: mobicrm-service/mobicrm-backend:latest
restart: always
build:
context: .
dockerfile: Dockerfile
# volumes:
# - /data/reestr-uploads:/srv/backend/uploads
ports:
- '80:80'
- '3000:3000'
links:
- mysql
environment:
- MYSQL_HOST=mysql
- MYSQL_PORT=3306
- MYSQL_ROOT_PASSWORD=1706
- MYSQL_DATABASE=mobiCRM
- MYSQL_USER=root
- MYSQL_PASSWORD=1706