-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 1.48 KB
/
docker-compose.yml
File metadata and controls
40 lines (40 loc) · 1.48 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
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:-127.0.0.1}
# CORS and HTTPS configuration
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS:-}
- HTTPS=${HTTPS:-false}
# .env is not in the image (.dockerignore); pass secrets from host .env into the container.
# Compose loads ../.env next to this file for ${...} substitution.
- YOUTUBE_DATA_API_KEY=${YOUTUBE_DATA_API_KEY:-}
- ACTUFEED_PROXY_CLIENT_KEYS=${ACTUFEED_PROXY_CLIENT_KEYS:-}
# 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://127.0.0.1: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"