-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.development.yml
More file actions
29 lines (28 loc) · 1.2 KB
/
docker-compose.development.yml
File metadata and controls
29 lines (28 loc) · 1.2 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
services:
entity-api:
build:
context: ./entity-api
# Uncomment if testing against a specific branch of commons other than the PyPI package
# Will also need to use the 'git+https://github.com/hubmapconsortium/commons.git@${COMMONS_BRANCH}#egg=hubmap-commons'
# in src/requirements.txt accordingly
args:
# The commons github branch to be used during image build (default to main if not set or null)
- COMMONS_BRANCH=${COMMONS_BRANCH:-main}
# Build the image with name and tag
# Exit with an error message containing err if unset or empty in the environment
image: hubmap/entity-api:${ENTITY_API_VERSION:?err}
# Setting CPU and Memory Limits - Zhou 10/9/2025
deploy:
# DEV/TEST VM t3.xlarge - 4 CPUs 16G RAM
resources:
limits:
cpus: '2' # 50%
memory: 9.6G # 60%
volumes:
# Mount the VERSION file and BUILD file
- "../VERSION:/usr/src/app/VERSION"
- "../BUILD:/usr/src/app/BUILD"
# Mount the source code to container
- "../src:/usr/src/app/src"
- # Mount conf.d on host machine to the nginx conf.d on container
- "./entity-api/nginx/conf.d:/etc/nginx/conf.d"