forked from amborle/featmap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
30 lines (29 loc) · 1.08 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
version: "2.1"
services:
postgres:
image: postgres:11-alpine
restart: always
volumes:
- ${PWD}/data:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${FEATMAP_DB}
POSTGRES_USER: ${FEATMAP_DB_USER}
POSTGRES_PASSWORD: ${FEATMAP_DB_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${FEATMAP_DB_USER}"]
interval: 10s
timeout: 5s
retries: 5
featmap:
image: amborle/featmap
restart: always
build:
context: .
dockerfile: Dockerfile
ports:
- ${FEATMAP_HTTP_PORT}:80
depends_on:
postgres:
condition: service_healthy
volumes:
- ${PWD}/config/conf.json:/opt/featmap/conf.json