-
Notifications
You must be signed in to change notification settings - Fork 73
/
docker-compose-pgsql.yml
36 lines (36 loc) · 1.14 KB
/
docker-compose-pgsql.yml
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
36
version: '3'
services:
postgresql:
image: postgres
restart: unless-stopped
env_file:
- .env/postgresql-postgres.env
- .env/postgresql.env
volumes:
- ./data:/var/lib/postgresql/data
- ./setup-postgresql.sh:/docker-entrypoint-initdb.d/setup-postgresql.sh
- ./.env/pg-server.crt:/var/lib/postgresql/server.crt
- ./.env/pg-server.key:/var/lib/postgresql/server.key
command: -c ssl=on -c ssl_cert_file=/var/lib/postgresql/server.crt -c ssl_key_file=/var/lib/postgresql/server.key
databunker-init:
#build: .
image: securitybunker/databunker:latest
env_file:
- .env/databunker.env
- .env/databunker-root.env
depends_on:
- postgresql
entrypoint: /bin/sh
command: -c "/bin/busybox sleep 3; /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:
- postgresql
ports:
- 3000:3000