- Replaced nodemon with tsx for development script in package.json - Updated devDependencies to include tsx and removed nodemon - Reformatted code in worker.ts for better readability - Improved handling of API calls and logging in worker.ts
25 lines
554 B
YAML
25 lines
554 B
YAML
services:
|
|
worker:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: production
|
|
container_name: website-generator-worker
|
|
network_mode: host
|
|
environment:
|
|
- NODE_ENV=production
|
|
- REDIS_URL=${REDIS_URL}
|
|
- GITEA_API_URL=${GITEA_API_URL}
|
|
- GITEA_TOKEN=${GITEA_TOKEN}
|
|
- GITEA_USERNAME=${GITEA_USERNAME}
|
|
env_file:
|
|
- .env
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./logs:/app/logs
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|