39 lines
818 B
YAML
39 lines
818 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
- DB_HOST=localhost
|
|
- DB_PORT=5432
|
|
- DB_NAME=calejo
|
|
- DB_USER=calejo
|
|
- DB_PASSWORD=password
|
|
- OPCUA_ENABLED=true
|
|
- OPCUA_PORT=4840
|
|
- MODBUS_ENABLED=true
|
|
- MODBUS_PORT=502
|
|
- REST_API_ENABLED=true
|
|
- REST_API_PORT=8080
|
|
- HEALTH_MONITOR_PORT=9090
|
|
- LOG_LEVEL=INFO
|
|
volumes:
|
|
- ./static:/app/static
|
|
- ./logs:/app/logs
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
restart: unless-stopped
|
|
networks:
|
|
- calejo-network
|
|
|
|
networks:
|
|
calejo-network:
|
|
driver: bridge |