mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
feat: add Docker configuration files and self-deployment workflow
This commit is contained in:
parent
e081c54624
commit
50846c91c2
4 changed files with 84 additions and 0 deletions
15
docker-compose.yml
Executable file
15
docker-compose.yml
Executable file
|
@ -0,0 +1,15 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3000"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
Loading…
Add table
Add a link
Reference in a new issue