-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-build.yaml
140 lines (133 loc) · 2.73 KB
/
docker-compose-build.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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: '3'
services:
mysql:
image: mysql:5.7
container_name: jms_mysql
restart: always
tty: true
environment:
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
MYSQL_DATABASE: jumpserver
command: --character-set-server=utf8
volumes:
- db-data:/var/lib/mysql
networks:
- jumpserver
redis:
image: redis:alpine
container_name: jms_redis
restart: always
tty: true
volumes:
- redis-data:/data
networks:
- jumpserver
core:
build:
context: .
dockerfile: core/Dockerfile
args:
Version: ${Version}
image: jms_core:${Version}
container_name: jms_core
hostname: jms_core
restart: always
tty: true
environment:
SECRET_KEY: $SECRET_KEY
BOOTSTRAP_TOKEN: $BOOTSTRAP_TOKEN
DB_ENGINE: mysql
DB_HOST: mysql
DB_PORT: 3306
DB_USER: root
DB_PASSWORD: $MYSQL_ROOT_PASSWORD
DB_NAME: jumpserver
REDIS_HOST: redis
depends_on:
- mysql
- redis
volumes:
- static:/opt/jumpserver/data/static
- media:/opt/jumpserver/data/media
- logs:/opt/jumpserver/logs
networks:
- jumpserver
coco:
build:
context: .
dockerfile: koko/Dockerfile
args:
Version: ${Version}
GOPROXY: https://goproxy.io
image: jms_koko:${Version}
container_name: jms_coco
restart: always
tty: true
environment:
CORE_HOST: http://core:8080
BOOTSTRAP_TOKEN: $BOOTSTRAP_TOKEN
depends_on:
- core
- mysql
- redis
volumes:
- keys-data:/opt/coco/keys
ports:
- 2222:2222
networks:
- jumpserver
guacamole:
build:
context: .
dockerfile: guacamole/Dockerfile
args:
Version: ${Version}
image: jms_guacamole:${Version}
container_name: jms_guacamole
restart: always
tty: true
environment:
JUMPSERVER_SERVER: http://core:8080
BOOTSTRAP_TOKEN: $BOOTSTRAP_TOKEN
JUMPSERVER_KEY_DIR: /config/guacamole/keys
GUACAMOLE_HOME: /config/guacamole
depends_on:
- core
- mysql
- redis
volumes:
- gua-key:/config/guacamole/keys
networks:
- jumpserver
nginx:
build:
context: .
dockerfile: nginx/Dockerfile
args:
Version: ${Version}
image: jms_nginx:${Version}
container_name: jms_nginx
restart: always
tty: true
depends_on:
- core
- coco
- mysql
- redis
volumes:
- static:/opt/jumpserver/data/static
- media:/opt/jumpserver/data/media
ports:
- 80:80
networks:
- jumpserver
volumes:
static:
media:
logs:
db-data:
redis-data:
keys-data:
gua-key:
networks:
jumpserver: