-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (48 loc) · 1.06 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
version: '2'
services:
jumpserver:
build: .
container_name: jumpserver
restart: always
volumes_from:
- jumpserver-data
ports:
- "8888:80"
- "2222:22"
- "3000:3000"
environment:
- MYSQL_HOST=jumpserver-db
- MYSQL_PORT=3306
- MYSQL_USER=root
- MYSQL_PASS=love1314
- MYSQL_NAME=jumpserver
- MAIL_ENABLED=false
- "WEBSOCKT=192.168.64.5:3000"
links:
- jumpserver-db
jumpserver-data:
build: .
container_name: jumpserver-data
command: echo "jumpserver's data container"
volumes:
- /etc
- /home
- /jumpserver/keys
- /jumpserver/logs
jumpserver-db:
image: mysql:5.7
container_name: jumpserver-db
restart: always
ports:
- 3306
volumes_from:
- jumpserver-db-data
environment:
- MYSQL_ROOT_PASSWORD=love1314
- MYSQL_DATABASE=jumpserver
jumpserver-db-data:
image: mysql:5.7
container_name: jumpserver-db-data
command: echo "jumpserver's data container"
volumes:
- /var/lib/mysql