-
Notifications
You must be signed in to change notification settings - Fork 177
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
35 lines (33 loc) · 1018 Bytes
/
docker-compose.yaml
File metadata and controls
35 lines (33 loc) · 1018 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
25
26
27
28
29
30
31
32
33
34
35
# Copyright IBM Corp. 2024, 2026
# SPDX-License-Identifier: BUSL-1.1
services:
dev-portal:
image: 'hashicorp/dev-portal:latest'
container_name: dev-portal
ports:
- ${DEV_PORTAL_PORT}:${DEV_PORTAL_PORT}
depends_on:
unified-docs-api:
condition: service_healthy
environment:
- MKTG_CONTENT_DOCS_API=https://content.hashicorp.com
- UNIFIED_DOCS_PORT=${UNIFIED_DOCS_PORT}
- UNIFIED_DOCS_API=http://unified-docs-api:${UNIFIED_DOCS_PORT}
- HASHI_ENV=unified-docs-sandbox
- NODE_ENV=development
profiles: [unified-docs]
unified-docs-api:
build: .
container_name: unified-docs-api
ports:
- ${UNIFIED_DOCS_PORT}:${UNIFIED_DOCS_PORT}
environment:
- DEV_PORTAL_URL=http://dev-portal:${DEV_PORTAL_PORT}
volumes:
- ./content:/server/content
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${UNIFIED_DOCS_PORT}"]
interval: 90s
timeout: 10s
retries: 5
start_period: 120s