From 470479d0bcb3d912154d41707921e5cebc7fc4c2 Mon Sep 17 00:00:00 2001 From: stremovsky Date: Thu, 23 Dec 2021 15:11:26 +0200 Subject: [PATCH] optimize docker-compose file --- docker-compose.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index c84e264..acd7547 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,7 @@ services: volumes: - ./data:/var/lib/mysql command: --max_connections=2000 - # this container's job is to initialize MySQL database. It should run just 1 time. + # this container's job is to initialize MySQL database. It should run just one time. databunker-init: #build: . image: securitybunker/databunker:latest @@ -20,7 +20,6 @@ services: depends_on: - mysql entrypoint: /bin/sh - # at first, this docker will wait for MySQL init to be ready. command: -c "/databunker/bin/databunker -init -db databunkerdb" databunker: #build: . @@ -28,9 +27,8 @@ services: restart: unless-stopped env_file: - .env/databunker.env - #entrypoint: /databunker/bin/databunker -db databunkerdb -conf /databunker/conf/databunker.yaml entrypoint: /bin/sh - command: -c "/bin/busybox sleep 30; /databunker/bin/databunker -db databunkerdb -conf /databunker/conf/databunker.yaml" + command: -c "/databunker/bin/databunker -db databunkerdb -conf /databunker/conf/databunker.yaml" depends_on: - mysql ports: