Fixed docker start up issue

This commit is contained in:
Azeez Muibi
2025-03-22 17:11:46 +01:00
parent 9deb402322
commit 2baf9a22c1
47 changed files with 194 additions and 86 deletions
+37
View File
@@ -0,0 +1,37 @@
services:
api:
build: .
ports:
- "8080:8080"
environment:
- DEBUG=False
- PORT=8080
- API_USERNAME=admin
- API_PASSWORD=password
- SIMBRELLA_APP_ID=your_app_id
- SIMBRELLA_API_KEY=your_api_key
- LOG_LEVEL=INFO
volumes:
- ./logs:/app/logs
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/v1/api/salary/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
# Add a database service if needed
# db:
# image: postgres:14
# environment:
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
# - POSTGRES_DB=simbrella
# volumes:
# - postgres_data:/var/lib/postgresql/data
# restart: unless-stopped
# Uncomment if you add the database service
# volumes:
# postgres_data: