-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (34 loc) · 1.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (34 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: '3.8'
services:
optihdl-web:
build:
context: .
dockerfile: Dockerfile
container_name: optihdl-web
ports:
- "5000:5000"
env_file:
- .env
volumes:
# Mount source code so changes take effect without rebuild
- ./web_app:/app/web_app
- ./core_tools:/app/core_tools
- ./optimization:/app/optimization
- ./tools/yosys2djs.js:/app/tools/yosys2djs.js
- ./run_optihdl.py:/app/run_optihdl.py
# Data directories
- ./models:/app/models
- ./data:/app/data
- ./logs:/app/logs
- ./outputs:/app/outputs
environment:
- PYTHONUNBUFFERED=1
# gunicorn --reload watches mounted files, restarts on change
command: ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "1", "--timeout", "300", "--reload", "web_app.app:create_app()"]
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s