-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.development.yml
33 lines (30 loc) · 1.36 KB
/
docker-compose.development.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
version: "3.7"
services:
sennet-auth:
build:
context: ./sennet-auth
# Uncomment if tesitng 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: sennet/sennet-auth:${SENNET_AUTH_VERSION:?err}
environment:
- DEPLOY_MODE=dev
volumes:
# Mount the VERSION file and BUILD file
- "./VERSION:/usr/src/app/VERSION"
- "./BUILD:/usr/src/app/BUILD"
# Mount the source code to container
- "./sennet-auth/src/:/usr/src/app/src"
# Mount conf.d-dev to the nginx conf.d on container
- "./nginx/conf.d-dev:/etc/nginx/conf.d"
# Mount ssl certificates from host to container
- "/etc/letsencrypt:/etc/letsencrypt"
# Mount the API endpoints json file for API endpoints lookup
- "./api_endpoints.dev.json:/usr/src/app/api_endpoints.json"
# Will be removed
- "/codcc/dev-test/data-dev:/codcc/dev-test/data-dev"