docker-compose之跳板机jumpserver部署

下载docker-compose

 curl -L https://get.daocloud.io/docker/compose/releases/download/1.24.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

docker-compose.yml

 version: ''
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: ./core
image: wojiushixiaobai/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:
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 koko:
build: ./koko
image: wojiushixiaobai/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:
- :
networks:
- jumpserver guacamole:
build: ./guacamole
image: wojiushixiaobai/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: ./nginx
image: wojiushixiaobai/jms_nginx:${Version}
container_name: jms_nginx
restart: always
tty: true
depends_on:
- core
- koko
- mysql
- redis
volumes:
- static:/opt/jumpserver/data/static
- media:/opt/jumpserver/data/media
ports:
- :
networks:
- jumpserver volumes:
static:
media:
logs:
db-data:
redis-data:
keys-data:
gua-key: networks:
jumpserver:

其他配置文件拉取github:https://github.com/lvelvis/jumpserver-docker.git

上一篇:Win8 x64环境下VS2010 C#工程运行报错:没有注册类 (异常来自 HRESULT:0x80040154


下一篇:第一次点击button, view视图出现;第二次点击button,view视图消失