-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathdocker-compose-mysql.yml
More file actions
35 lines (35 loc) · 1010 Bytes
/
docker-compose-mysql.yml
File metadata and controls
35 lines (35 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# run ./generate-env-files.sh to generate all key material, including root token.
version: '3'
services:
mysql:
image: mysql/mysql-server
env_file:
- .env/mysql-root.env
- .env/mysql.env
restart: unless-stopped
volumes:
- ./data:/var/lib/mysql
command: --max_connections=4096
# this container's job is to initialize MySQL database. It should run just one time.
databunker-init:
#build: .
image: securitybunker/databunker:latest
env_file:
- .env/databunker.env
- .env/databunker-root.env
depends_on:
- mysql
entrypoint: /bin/sh
command: -c "/databunker/bin/databunker -init -db databunkerdb"
databunker:
#build: .
image: securitybunker/databunker:latest
restart: unless-stopped
env_file:
- .env/databunker.env
entrypoint: /bin/sh
command: -c "/databunker/bin/databunker -start -db databunkerdb -conf /databunker/conf/databunker.yaml"
depends_on:
- mysql
ports:
- 3000:3000