Skip to content

Commit

Permalink
Keep essential containers alive after exit
Browse files Browse the repository at this point in the history
  • Loading branch information
noboruma committed Sep 13, 2023
1 parent 2916234 commit 1eb1ed9
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions deployment-scripts/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:
image: ${IMAGE_REPOSITORY:-deepfenceio}/deepfence_postgres_ce:${DF_IMG_TAG:-2.0.0}
ulimits:
core: 0
restart: on-failure
restart: unless-stopped
networks:
- deepfence_net
volumes:
Expand All @@ -48,7 +48,7 @@ services:
image: ${IMAGE_REPOSITORY:-deepfenceio}/deepfence_redis_ce:${DF_IMG_TAG:-2.0.0}
ulimits:
core: 0
restart: on-failure
restart: unless-stopped
networks:
- deepfence_net
volumes:
Expand All @@ -64,7 +64,7 @@ services:

ulimits:
core: 0
restart: on-failure
restart: unless-stopped
tmpfs:
- /tmp
networks:
Expand Down Expand Up @@ -98,7 +98,7 @@ services:
resources:
limits:
cpus: ".2"
restart: on-failure
restart: unless-stopped
environment:
- MGMT_CONSOLE_URL_INTERNAL=127.0.0.1
- MGMT_CONSOLE_PORT_INTERNAL=8081
Expand Down Expand Up @@ -127,7 +127,7 @@ services:
core: 0
networks:
- deepfence_net
restart: always
restart: unless-stopped
environment:
FORCE_HTTPS_REDIRECT: "true"
KAFKA_REST_PROXY: "deepfence-rest-proxy:8082"
Expand All @@ -148,7 +148,7 @@ services:
core: 0
networks:
- deepfence_net
restart: always
restart: unless-stopped
ports:
- "127.0.0.1:9000:9000"
- "127.0.0.1:9333:9333"
Expand Down Expand Up @@ -187,14 +187,14 @@ services:
driver: "json-file"
options:
max-size: "200m"
restart: on-failure
restart: unless-stopped

deepfence-worker:
container_name: deepfence-worker
image: ${IMAGE_REPOSITORY:-deepfenceio}/deepfence_worker_ce:${DF_IMG_TAG:-2.0.0}
ulimits:
core: 0
restart: on-failure
restart: unless-stopped
networks:
- deepfence_net
depends_on:
Expand All @@ -216,7 +216,7 @@ services:
# image: ${IMAGE_REPOSITORY:-deepfenceio}/deepfence_worker_ce:${DF_IMG_TAG:-2.0.0}
# ulimits:
# core: 0
# restart: on-failure
# restart: unless-stopped
# networks:
# - deepfence_net
# depends_on:
Expand All @@ -237,7 +237,7 @@ services:
# image: ${IMAGE_REPOSITORY:-deepfenceio}/deepfence_worker_ce:${DF_IMG_TAG:-2.0.0}
# ulimits:
# core: 0
# restart: on-failure
# restart: unless-stopped
# networks:
# - deepfence_net
# depends_on:
Expand All @@ -258,7 +258,7 @@ services:
image: ${IMAGE_REPOSITORY:-deepfenceio}/deepfence_worker_ce:${DF_IMG_TAG:-2.0.0}
ulimits:
core: 0
restart: on-failure
restart: unless-stopped
environment:
<<: *common-creds
DEEPFENCE_MODE: scheduler
Expand All @@ -282,7 +282,7 @@ services:
core: 0
networks:
- deepfence_net
restart: on-failure
restart: unless-stopped
depends_on:
- deepfence-server
logging:
Expand All @@ -307,6 +307,7 @@ services:
driver: "json-file"
options:
max-size: "50m"
restart: unless-stopped

deepfence-ingester:
image: ${IMAGE_REPOSITORY:-deepfenceio}/deepfence_worker_ce:${DF_IMG_TAG:-2.0.0}
Expand All @@ -325,6 +326,7 @@ services:
driver: "json-file"
options:
max-size: "200m"
restart: unless-stopped

deepfence-telemetry:
image: jaegertracing/all-in-one:1.42
Expand Down

0 comments on commit 1eb1ed9

Please sign in to comment.