Skip to content

Commit

Permalink
perf: 容器指定 Hostname 为 容器名
Browse files Browse the repository at this point in the history
  • Loading branch information
BaiJiangJie committed Jul 31, 2023
1 parent dcb5207 commit e1b5aa5
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 2 deletions.
7 changes: 7 additions & 0 deletions compose/docker-compose-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
core:
image: jumpserver/core:${VERSION}
container_name: jms_core
hostname: jms_core
ulimits:
core: 0
restart: always
Expand All @@ -26,6 +27,7 @@ services:
koko:
image: jumpserver/koko:${VERSION}
container_name: jms_koko
hostname: jms_koko
ulimits:
core: 0
restart: always
Expand All @@ -52,6 +54,7 @@ services:
lion:
image: jumpserver/lion:${VERSION}
container_name: jms_lion
hostname: jms_lion
ulimits:
core: 0
restart: always
Expand All @@ -75,6 +78,7 @@ services:
magnus:
image: jumpserver/magnus:${VERSION}
container_name: jms_magnus
hostname: jms_magnus
ulimits:
core: 0
restart: always
Expand Down Expand Up @@ -102,6 +106,7 @@ services:
chen:
image: jumpserver/chen:${VERSION}
container_name: jms_chen
hostname: jms_chen
ulimits:
core: 0
restart: always
Expand All @@ -125,6 +130,7 @@ services:
kael:
image: jumpserver/kael:${VERSION}
container_name: jms_kael
hostname: jms_kael
ulimits:
core: 0
restart: always
Expand All @@ -148,6 +154,7 @@ services:
web:
image: jumpserver/web:${VERSION}
container_name: jms_web
hostname: jms_web
ulimits:
core: 0
restart: always
Expand Down
1 change: 1 addition & 0 deletions compose/docker-compose-es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
es:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.10
container_name: jms_es
hostname: jms_es
restart: always
ports:
- 9200:9200
Expand Down
1 change: 1 addition & 0 deletions compose/docker-compose-init-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
core:
image: jumpserver/core:${VERSION}
container_name: jms_core
hostname: jms_core
tty: true
command: sleep
env_file:
Expand Down
1 change: 1 addition & 0 deletions compose/docker-compose-mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
mysql:
image: jumpserver/mariadb:10.6
container_name: jms_mysql
hostname: jms_mysql
restart: always
command: --character-set-server=utf8 --collation-server=utf8_general_ci
environment:
Expand Down
1 change: 1 addition & 0 deletions compose/docker-compose-minio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
minio:
image: jumpserver/minio:latest
container_name: jms_minio
hostname: jms_minio
restart: always
command: "server /data --console-address :9001"
ports:
Expand Down
1 change: 1 addition & 0 deletions compose/docker-compose-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
mysql:
image: jumpserver/mysql:5.7
container_name: jms_mysql
hostname: jms_mysql
restart: always
command: --character-set-server=utf8
environment:
Expand Down
1 change: 1 addition & 0 deletions compose/docker-compose-redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
redis:
image: jumpserver/redis:6.2
container_name: jms_redis
hostname: jms_redis
restart: always
command: ["redis-server", "/etc/redis.conf", "--requirepass", "$REDIS_PASSWORD"]
environment:
Expand Down
1 change: 1 addition & 0 deletions compose/docker-compose-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
celery:
image: jumpserver/core:${VERSION}
container_name: jms_celery
hostname: jms_celery
ulimits:
core: 0
restart: always
Expand Down
3 changes: 2 additions & 1 deletion compose/docker-compose-video-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
video:
image: registry.fit2cloud.com/jumpserver/video-worker:${VERSION}
container_name: jms_video_worker
hostname: jms_video_worker
ulimits:
core: 0
restart: always
Expand All @@ -21,4 +22,4 @@ services:
retries: 3
start_period: 10s
networks:
- net
- net
3 changes: 2 additions & 1 deletion compose/docker-compose-video.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
video:
image: registry.fit2cloud.com/jumpserver/video-worker:${VERSION}
container_name: jms_video
hostname: jms_video
ulimits:
core: 0
restart: always
Expand All @@ -22,4 +23,4 @@ services:
retries: 3
start_period: 10s
networks:
- net
- net
2 changes: 2 additions & 0 deletions compose/docker-compose-xpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ services:
razor:
image: registry.fit2cloud.com/jumpserver/razor:${VERSION}
container_name: jms_razor
hostname: jms_razor
ulimits:
core: 0
restart: always
Expand All @@ -56,6 +57,7 @@ services:
xrdp:
image: registry.fit2cloud.com/jumpserver/xrdp:${VERSION}
container_name: jms_xrdp
hostname: jms_xrdp
ulimits:
core: 0
restart: always
Expand Down

0 comments on commit e1b5aa5

Please sign in to comment.