-
Notifications
You must be signed in to change notification settings - Fork 72
/
docker-compose.yml
77 lines (73 loc) · 1.67 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3'
services:
fame-nginx:
container_name: fame-nginx
build:
context: ./
dockerfile: ./fame-docker/fame-nginx/nginx-Dockerfile
environment:
TZ: Asia/Shanghai
ports:
- "80:80"
volumes:
- ~/.fame/logs/nginx:/var/log/nginx
depends_on:
- fame-server
- fame-admin
- fame-front
restart: always
fame-mysql:
container_name: fame-mysql
build:
context: ./
dockerfile: ./fame-docker/fame-mysql-Dockerfile
command: --lower-case-table-names=1
environment:
MYSQL_DATABASE: fame
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_HOST: '%'
TZ: Asia/Shanghai
expose:
- "3306"
volumes:
- ~/.fame/mysql/mysql_data:/var/lib/mysql
restart: always
fame-server:
container_name: fame-server
build:
context: ./
dockerfile: ./fame-docker/fame-server-Dockerfile
working_dir: /app
environment:
TZ: Asia/Shanghai
volumes:
- ./fame-server:/app
- ~/.m2:/root/.m2
- ~/.fame/logs/server:/app/log
- ~/.fame/upload:/root/.fame/upload
expose:
- "9090"
command: mvn clean spring-boot:run -Dspring-boot.run.profiles=docker -Dmaven.test.skip=true
depends_on:
- fame-mysql
restart: always
fame-admin:
container_name: fame-admin
build:
context: ./
dockerfile: ./fame-docker/fame-admin/fame-admin-Dockerfile
environment:
TZ: Asia/Shanghai
expose:
- "3001"
restart: always
fame-front:
container_name: fame-front
build:
context: ./
dockerfile: ./fame-docker/fame-front-Dockerfile
environment:
TZ: Asia/Shanghai
expose:
- "3000"
restart: always