forked from Ed-Fi-Alliance-OSS/edfi-oneroster
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
40 lines (38 loc) · 1.32 KB
/
docker-compose.dev.yml
File metadata and controls
40 lines (38 loc) · 1.32 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
34
35
36
37
38
39
40
# SPDX-License-Identifier: Apache-2.0
# Licensed to EdTech Consortium, Inc. under one or more agreements.
# EdTech Consortium, Inc. licenses this file to you under the Apache License, Version 2.0.
# See the LICENSE and NOTICES files in the project root for more information.
#
# Lightweight dev compose file: builds and runs the OneRoster API only.
# Requires an existing external 'pgsql_default' Docker network and a separately
# running Postgres instance. Use this when you already have a database running
# locally and just want to iterate on the API.
#
# For a self-contained stack (DB + NGINX + Ed-Fi ODS), use stack/start-services.ps1
# with edfi-services.yml, nginx-compose.yml, and oneroster-service.yml instead.
#
# Usage (from repo root):
# docker compose -f docker-compose.dev.yml up --build
services:
api:
build: .
user: appuser
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
ports:
- "3000:3000"
networks:
- pgsql_default
env_file:
- .env
healthcheck:
test: ${ONEROSTER_API_HEALTHCHECK_TEST:-if [ "$${ENABLE_HTTPS}" = "true" ]; then curl -fk https://localhost:3000/health-check; else curl -f http://localhost:3000/health-check; fi}
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
pgsql_default:
external: true