first commit
This commit is contained in:
28
compose.yaml
Normal file
28
compose.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
services:
|
||||
timetracker:
|
||||
build: .
|
||||
container_name: timetracker
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 34225:3000
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- DATABASE_URL=file:/app/data/timetracker.db
|
||||
- JWT_SECRET=${JWT_SECRET:-change-this-secret-in-production}
|
||||
- PORT=3000
|
||||
volumes:
|
||||
- timetracker-data:/app/data
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
- wget
|
||||
- -q
|
||||
- --spider
|
||||
- http://localhost:3000/api/auth/me
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
volumes:
|
||||
timetracker-data: null
|
||||
networks: {}
|
||||
Reference in New Issue
Block a user