-
Notifications
You must be signed in to change notification settings - Fork 309
/
docker-compose.yaml
48 lines (44 loc) · 1.01 KB
/
docker-compose.yaml
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
version: '3'
services:
frontservice:
container_name: front-backend
build:
context: ./front/publish
dockerfile: Dockerfile
ports:
- 8088:80
labels:
description: 'front backend web'
restart: always
webapiservice:
container_name: web-api
build:
context: ./api/publish
dockerfile: Dockerfile
ports:
- 8089:80
labels:
description: 'web api'
restart: always
redis:
image: redis:latest
restart: always
ports:
- 6379:6379
expose:
- 6379
command:
redis-server
mysql:
image: mysql:5.7.19
restart: always
ports:
- 3306:3306
expose:
- 3306
volumes:
- /usr/local/mysql/data:/var/lib/mysql
- /usr/local/mysql/conf.d:/etc/mysql/conf.d
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --lower_case_table_names=2
environment:
- MYSQL_ROOT_PASSWORD=admin