-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (36 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
36 lines (36 loc) · 1.2 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
services:
actufeed:
build:
context: .
dockerfile: Dockerfile
container_name: actufeed-app
ports:
- "3072:3072"
restart: unless-stopped
environment:
- NODE_ENV=production
# HOST and ALLOWED_HOSTS are read from .env file
# Set HOST to match your nginx server_name (or domain)
# This tells Vite which host(s) to allow
- HOST=${HOST:-localhost}
# CORS and HTTPS configuration
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS:-}
- HTTPS=${HTTPS:-false}
# Or use ALLOWED_HOSTS for multiple hosts (comma-separated):
# - ALLOWED_HOSTS=${ALLOWED_HOSTS}
mem_limit: 256m
cpus: 0.75
mem_reservation: 128m
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3072', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
logging:
driver: syslog
options:
# Default: host loopback (like localhost) — only useful if something on the Docker host listens on UDP 514
syslog-address: "${SYSLOG_ADDRESS:-udp://127.0.0.1:514}"
tag: "app{{.Name}} env=prod"
syslog-facility: "daemon"