Add development docker-compose file and documentation for testing without Caddy
This commit is contained in:
29
docker-compose-dev.yml
Normal file
29
docker-compose-dev.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
services:
|
||||
markov-economics-dev:
|
||||
build: .
|
||||
ports:
|
||||
- "5000:5000"
|
||||
environment:
|
||||
- FLASK_ENV=development
|
||||
- FLASK_APP=run.py
|
||||
- PYTHONUNBUFFERED=1
|
||||
volumes:
|
||||
# Mount source code for development
|
||||
- .:/app
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:5000/health', timeout=2)"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
networks:
|
||||
- markov-network
|
||||
|
||||
networks:
|
||||
markov-network:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
markov-data:
|
||||
driver: local
|
Reference in New Issue
Block a user