-
Notifications
You must be signed in to change notification settings - Fork 0
/
eladmin-docker.yml
79 lines (74 loc) · 1.74 KB
/
eladmin-docker.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
78
79
version: '1'
services:
eladmin-nginx:
container_name: eladmin-nginx
build:
context: ./
dockerfile: ./eladmin-docker/eladmin-nginx/nginx-Dockerfile
environment:
TZ: Asia/Shanghai
ports:
- "8088:80"
volumes:
- ~/.eladmin/logs/nginx:/var/log/nginx
depends_on:
- eladmin-server
- eladmin-admin
- eladmin-redis
eladmin-mysql:
container_name: eladmin-mysql
build:
context: ./
dockerfile: ./eladmin-docker/eladmin-mysql/mysql-Dockerfile
environment:
MYSQL_DATABASE: eladmin
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_HOST: '%'
TZ: Asia/Shanghai
expose:
- "3306"
volumes:
- ~/.eladmin/mysql/mysql_data:/var/lib/mysql
restart: always
eladmin-server:
container_name: eladmin-server
build:
context: ./
dockerfile: ./eladmin-docker/eladmin-server-Dockerfile
working_dir: /app
environment:
TZ: Asia/Shanghai
volumes:
- ./eladmin-server:/app
- ~/.m2:/root/.m2
- #~/.eladmin/logs/server:/app/log
- #~/.eladmin/upload:/root/.fame/upload
expose:
- "9090"
command: mvn clean spring-boot:run -Dspring-boot.run.profiles=docker -Dmaven.test.skip=true
depends_on:
- eladmin-mysql
- eladmin-redis
restart: always
eladmin-admin:
container_name: eladmin-admin
build:
context: ./
dockerfile: ./eladmin-docker/eladmin-admin/eladmin-admin-Dockerfile
environment:
TZ: Asia/Shanghai
expose:
- "3001"
eladmin-redis:
image: redis:4.0.13
container_name: eladmin-redis
restart: always
command: --appendonly yes
ports:
- 6379:6379
volumes:
- ./redis_data:/data
networks:
default:
external:
name: eladmin-proxy