forked from Cybersecurity-LINKS/mediterraneus-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (50 loc) · 1.19 KB
/
docker-compose.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
services:
dlt-booth:
build:
context: .
dockerfile: Dockerfile
image: dlt-booth
container_name: dlt-booth
restart: unless-stopped
ports:
- "8085:8085"
depends_on:
postgres:
condition: service_healthy
profiles:
- deploy
#enables data persistance of key storage and wallet. Remove it to disable data persistance
volumes:
- "./docker_data:/data"
networks:
- dlt-booth-net
env_file:
- ./dlt-booth/env/.env
postgres:
container_name: postgres
hostname: postgres
image: postgres:latest
ports:
- "5432:5432"
env_file:
- ./dlt-booth/env/postgres.env
volumes:
- ./dlt-booth/postgresdata:/var/lib/postgresql/data
- ./dlt-booth/sql/dbinit.sql:/docker-entrypoint-initdb.d/dbinit.sql
restart: always
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: dlt_booth
POSTGRES_DB: dlt_booth
profiles:
- dev
- deploy
networks:
- dlt-booth-net
networks:
dlt-booth-net: