forked from flavienbwk/ocpa-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.base.yml
More file actions
35 lines (34 loc) · 1.06 KB
/
compose.base.yml
File metadata and controls
35 lines (34 loc) · 1.06 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
# Shared base services configuration across compose files.
#
# Defines base services that are extended by environment-specific compose files:
# - dev (compose.dev.yml)
# - prod (compose.prod.yml)
# - test (compose.test.yml)
#
# Each environment file uses `extends` to inherit from base services defined here,
# then overrides or adds environment-specific configuration (build target, ports, volumes...).
services:
markserv-base:
# OCPA-R16: Cross-platform compatibility
platform: linux/amd64
# OCPA-R10: Logging limits
logging:
options:
max-size: "1m"
# OCPA-R17: Exposed ports (internal)
expose:
- "8642"
# OCPA-R19: Port using environment variable
ports:
- "${MARKSERV_PORT:-8080}:8642"
# OCPA-R13: Healthcheck
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8642"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# OCPA-R20: In-container environment variables
environment:
PORT: 8642
SOME_EXAMPLE_ENV: ${SOME_EXAMPLE_ENV}