-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml.example
More file actions
45 lines (43 loc) · 1.42 KB
/
docker-compose.yml.example
File metadata and controls
45 lines (43 loc) · 1.42 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
41
42
43
44
45
# Category: Orchestration
# Service: Docker Compose (Production)
# Description: Production orchestration for the Essentia application.
# Usage: docker compose up -d (using the production compose file)
# Maintainer: ryumada
services:
app:
build: .
restart: always
env_file:
- .env
# PROXY_LABELS_PLACEHOLDER
ports:
- ${PORT}:${PORT}
- 9229:9229
- 9230:9230
sysctls:
net.ipv6.conf.all.disable_ipv6: 1
# IMPORTANT: Depending on your Docker daemon's security configuration,
# you might also need one of these lines if `sysctls` fails:
# privileged: true # Grants almost all capabilities - less secure
# cap_add:
# - NET_ADMIN # Grants network administration capabilities
# - SYS_ADMIN # Grants system administration capabilities (often needed for sysctl)
# --- END ADDITION ---
logging:
driver: "json-file"
options:
max-size: "25m"
max-file: "3"
healthcheck:
# Uses native Node.js fetch, works on any base image (Debian, Alpine, etc.) without installing curl
test: ["CMD", "node", "-e", "fetch('http://localhost:${PORT}/${HEALTHCHECK_PATH}').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"]
interval: 30s
timeout: 10s
retries: 5
start_period: 1m
networks:
- ${DOCKER_NETWORK}
# PROXY_NETWORK_PLACEHOLDER
networks:
${DOCKER_NETWORK}:
driver: bridge