-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.localhost.yml
More file actions
33 lines (32 loc) · 1.16 KB
/
docker-compose.localhost.yml
File metadata and controls
33 lines (32 loc) · 1.16 KB
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
services:
entity-api:
build:
context: ./entity-api
args:
- COMMONS_BRANCH=${COMMONS_BRANCH:-main}
image: hubmap/entity-api:${ENTITY_API_VERSION:?err}
environment:
- DEPLOY_MODE=localhost
volumes:
# Mount VERSION and BUILD files
- "../VERSION:/usr/src/app/VERSION"
- "../BUILD:/usr/src/app/BUILD"
## Mount source code for live development
#- "../src:/usr/src/app/src"
# Mount localhost-specific nginx config
- "${PWD}/entity-api/nginx/conf.d-localhost:/etc/nginx/conf.d"
healthcheck:
# Replaces base healthcheck - Check port 8080 inside container (nginx listening port)
test: [ "CMD", "curl", "--fail", "http://localhost:8080/status" ]
interval: 12h # Set long on localhost to avoid logging that interferes with development
timeout: 5s
retries: 5
start_period: 30s
logging:
# Override CloudWatch logging - use local json-file driver for localhost
driver: json-file
options:
max-size: "10m"
max-file: "3" # Keep 3 files, rotating oldest out
networks:
- gateway_hubmap # Same network as hubmap-auth for communication