-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathdocker-compose.yml
57 lines (57 loc) · 1.18 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
version: "3.3"
services:
nuxt:
container_name: nuxt
build: './nuxt'
restart: always
ports:
- 8083:8083
depends_on:
- server
volumes:
- "/opt/volumes/uploads:/opt/builder/static/static"
manage-ui:
container_name: manage-ui
build: './manage-ui'
restart: always
ports:
- 8080:8080
depends_on:
- server
volumes:
- "/opt/volumes/uploads:/opt/default/dist/static"
server:
container_name: server
build: './server'
restart: always
ports:
- 3000:3000
- 3002:3002
depends_on:
- mysql
- redis
volumes:
- "/opt/volumes/uploads:/opt/server/uploads"
- "/etc/localtime:/etc/localtime"
redis:
container_name: redis
image: redis
restart: always
ports:
- 6379:6379
mysql:
container_name: mysql
image: mariadb
restart: always
command: [
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_ci'
]
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "blog"
volumes:
- "/etc/localtime:/etc/localtime"
- "/opt/volumes/mysql:/var/lib/mysql"