Skip to content

Commit

Permalink
perf: 允许配置组件按需运行
Browse files Browse the repository at this point in the history
  • Loading branch information
wojiushixiaobai committed Aug 28, 2023
1 parent 7a37ef4 commit 22c688c
Show file tree
Hide file tree
Showing 25 changed files with 359 additions and 346 deletions.
181 changes: 0 additions & 181 deletions compose/docker-compose-app.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ version: '2.4'

services:
celery:
image: jumpserver/core:${VERSION}
image: ${REGISTRY:-docker.io}/jumpserver/core:${VERSION}
container_name: jms_celery
hostname: jms_celery
ulimits:
core: 0
restart: always
tty: true
command: start task
depends_on:
core:
condition: service_healthy
env_file:
- ${CONFIG_FILE}
volumes:
- ${CONFIG_DIR}/core/config.yml:/opt/jumpserver/config.yml
- ${CONFIG_DIR}/certs:/opt/jumpserver/data/certs
healthcheck:
test: "bash /opt/jumpserver/utils/check_celery.sh"
interval: 10s
Expand Down
24 changes: 24 additions & 0 deletions compose/docker-compose-chen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: '2.4'

services:
chen:
image: ${REGISTRY:-docker.io}/jumpserver/chen:${VERSION}
container_name: jms_chen
hostname: jms_chen
ulimits:
core: 0
restart: always
tty: true
env_file:
- ${CONFIG_FILE}
volumes:
- ${VOLUME_DIR}/chen/data:/opt/chen/data
- ${CONFIG_DIR}/certs:/opt/chen/data/certs
healthcheck:
test: "curl -f 127.0.0.1:8082/chen"
interval: 10s
timeout: 5s
retries: 3
start_period: 60s
networks:
- net
26 changes: 26 additions & 0 deletions compose/docker-compose-core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: '2.4'

services:
core:
image: ${REGISTRY:-docker.io}/jumpserver/core:${VERSION}
container_name: jms_core
hostname: jms_core
ulimits:
core: 0
restart: always
tty: true
command: start web
env_file:
- ${CONFIG_FILE}
volumes:
- ${CONFIG_DIR}/core/config.yml:/opt/jumpserver/config.yml
- ${CONFIG_DIR}/certs:/opt/jumpserver/data/certs
- ${VOLUME_DIR}/core/data:/opt/jumpserver/data
healthcheck:
test: "curl -fsL http://localhost:8080/api/health/ > /dev/null"
interval: 10s
timeout: 5s
retries: 3
start_period: 90s
networks:
- net
18 changes: 0 additions & 18 deletions compose/docker-compose-db-tls.yml

This file was deleted.

3 changes: 2 additions & 1 deletion compose/docker-compose-init-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '2.4'

services:
core:
image: jumpserver/core:${VERSION}
image: ${REGISTRY:-docker.io}/jumpserver/core:${VERSION}
container_name: jms_core
hostname: jms_core
tty: true
Expand All @@ -11,6 +11,7 @@ services:
- ${CONFIG_FILE}
volumes:
- ${CONFIG_DIR}/core/config.yml:/opt/jumpserver/config.yml
- ${CONFIG_DIR}/certs:/opt/jumpserver/data/certs
- ${VOLUME_DIR}/core/data:/opt/jumpserver/data
networks:
- net
6 changes: 0 additions & 6 deletions compose/docker-compose-init-tls.yml

This file was deleted.

5 changes: 0 additions & 5 deletions compose/docker-compose-init-xpack.yml

This file was deleted.

24 changes: 24 additions & 0 deletions compose/docker-compose-kael.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: '2.4'

services:
kael:
image: ${REGISTRY:-docker.io}/jumpserver/kael:${VERSION}
container_name: jms_kael
hostname: jms_kael
ulimits:
core: 0
restart: always
tty: true
env_file:
- ${CONFIG_FILE}
volumes:
- ${CONFIG_DIR}/certs:/opt/kael/data/certs
- ${VOLUME_DIR}/kael/data:/opt/kael/data
healthcheck:
test: "curl -fsL http://localhost:8083/kael/health/ > /dev/null"
interval: 10s
timeout: 5s
retries: 3
start_period: 60s
networks:
- net
27 changes: 27 additions & 0 deletions compose/docker-compose-koko.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: '2.4'

services:
koko:
image: ${REGISTRY:-docker.io}/jumpserver/koko:${VERSION}
container_name: jms_koko
hostname: jms_koko
ulimits:
core: 0
restart: always
tty: true
env_file:
- ${CONFIG_FILE}
ports:
- ${SSH_PORT}:2222
volumes:
- ${CONFIG_DIR}/certs:/opt/koko/data/certs
- ${VOLUME_DIR}/koko/data:/opt/koko/data
privileged: true
healthcheck:
test: "curl -fsL http://localhost:5000/koko/health/ > /dev/null"
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
networks:
- net
24 changes: 24 additions & 0 deletions compose/docker-compose-lion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: '2.4'

services:
lion:
image: ${REGISTRY:-docker.io}/jumpserver/lion:${VERSION}
container_name: jms_lion
hostname: jms_lion
ulimits:
core: 0
restart: always
tty: true
env_file:
- ${CONFIG_FILE}
volumes:
- ${CONFIG_DIR}/certs:/opt/lion/data/certs
- ${VOLUME_DIR}/lion/data:/opt/lion/data
healthcheck:
test: "curl -fsL http://localhost:8081/lion/health/ > /dev/null"
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
networks:
- net
7 changes: 7 additions & 0 deletions compose/docker-compose-magnus-xpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '2.4'

services:
magnus:
ports:
- ${MAGNUS_POSTGRESQL_PORT:-54320}:54320
- ${MAGNUS_ORACLE_PORTS:-30000-30030}:${MAGNUS_ORACLE_PORTS:-30000-30030}
Loading

0 comments on commit 22c688c

Please sign in to comment.