forked from microsoft/ogc-api-fast-features
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
24 lines (24 loc) · 802 Bytes
/
docker-compose.yml
File metadata and controls
24 lines (24 loc) · 802 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
version: '2.1' # upgrade to 3.9 when available, depends_on with condition problematic in some v3 versions
services:
api:
build:
context: .
image: oaff
volumes:
- ./oaff:/opt/ogc-api-fast-features/oaff
command: uvicorn --reload --host 0.0.0.0 --port 80 --log-level "info" "oaff.fastapi.api.main:app"
healthcheck:
test: curl -s --fail http://localhost/docs || exit 1
interval: 2s
timeout: 2s
retries: 5
depends_on:
postgres:
condition: service_healthy
postgres:
image: mdillon/postgis:11
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 2s
timeout: 2s
retries: 5