-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
42 lines (42 loc) · 1.5 KB
/
docker-compose.dev.yml
File metadata and controls
42 lines (42 loc) · 1.5 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
services:
actufeed:
build:
context: .
dockerfile: Dockerfile.dev
container_name: actufeed-app-dev
ports:
- "3072:3072" # Vite dev server (same port as production)
volumes:
# Mount source code for hot-reload
- ./src:/app/src
- ./public:/app/public
- ./index.html:/app/index.html
- ./vite.config.js:/app/vite.config.js
- ./server.js:/app/server.js
# Exclude node_modules (use container's)
- /app/node_modules
environment:
- NODE_ENV=development
- VITE_PORT=3072
- BACKEND_PORT=3073
# HOST is read from .env file (defaults to 127.0.0.1 for IPv4)
- HOST=${HOST:-127.0.0.1}
# CORS and HTTPS configuration (optional in dev, but included for consistency)
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS:-}
- HTTPS=${HTTPS:-false}
- YOUTUBE_DATA_API_KEY=${YOUTUBE_DATA_API_KEY:-}
- ACTUFEED_PROXY_CLIENT_KEYS=${ACTUFEED_PROXY_CLIENT_KEYS:-}
restart: unless-stopped
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=dev"
syslog-facility: "daemon"