VisionApp/docker-compose.yml

39 lines
707 B
YAML
Raw Normal View History

services:
vision:
build:
context: .
dockerfile: Dockerfile
image: vision-vision
container_name: vision-bot
restart: unless-stopped
env_file: .env
environment:
- VISION_INSTANCE=prod
- HEALTH_PORT=1890
dns:
- 1.1.1.1
- 8.8.8.8
ports:
- "1890:1890"
volumes:
- .:/app
- vision-data:/app/data
- vision-logs:/app/logs
deploy:
resources:
limits:
memory: 512M
cpus: "1.0"
reservations:
memory: 128M
cpus: "0.25"
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
volumes:
vision-data:
vision-logs: