41 lines
891 B
YAML
41 lines
891 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "8081:8081"
|
|
environment:
|
|
- DB_HOST=host.docker.internal
|
|
- 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=8081
|
|
- HEALTH_MONITOR_PORT=9091
|
|
- LOG_LEVEL=DEBUG
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
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 |