-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
54 lines (51 loc) · 997 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: '3'
services:
frontend:
container_name: frontend
build:
context: ./Frontend
dockerfile: ./Dockerfile
restart: always
env_file:
- ./Frontend/.env
ports:
- "8088:80"
depends_on:
- backend
networks:
- crm
backend:
container_name: backend
build:
context: ./Backend
dockerfile: ./Dockerfile
restart: always
env_file:
- ./Backend/.env
ports:
- "8090:8080"
depends_on:
- db
volumes:
- ./log/:/opt/back/logs:rw
networks:
- crm
db:
container_name: db-mysql
image: mysql:5.7
restart: always
command: --init-file /data/application/init.sql
ports:
- 3306:3306
environment:
MYSQL_DATABASE: "crm"
MYSQL_USER: "user"
MYSQL_PASSWORD: "user"
MYSQL_ROOT_PASSWORD: "root"
volumes:
- ./db_crm:/var/lib/mysql
- ./init.sql:/data/application/init.sql
networks:
- crm
networks:
crm: