Add .env.example for environment variable reference, nixpacks.toml for Nixpacks deployment, and docker-compose.yml for containerized deployment. These files provide necessary configuration for running the application in different environments.
25 lines
520 B
YAML
25 lines
520 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
app:
|
|
build: .
|
|
ports:
|
|
- "5000:5000"
|
|
volumes:
|
|
- calorie_tracker_data:/app/data
|
|
environment:
|
|
- PORT=5000
|
|
- NODE_ENV=production
|
|
# Add other environment variables here or use an env_file
|
|
# - API_NINJAS_KEY=your_key_here
|
|
# - SECRET_KEY=your_secret_here
|
|
restart: always
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:5000/"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
volumes:
|
|
calorie_tracker_data:
|