Files
Cognitive_Agent/deploy/server/compose.yaml
T

52 lines
1.3 KiB
YAML
Executable File

name: cognitive-agent-511
services:
web:
build:
context: ../..
dockerfile: deploy/server/Dockerfile
image: cognitive-agent-511:latest
container_name: cognitive-agent-511
restart: unless-stopped
init: true
env_file:
- path: ../../.env
format: raw
- path: ../../.env.auth
format: raw
environment:
HOST: 0.0.0.0
PORT: "8000"
PYTHONDONTWRITEBYTECODE: "1"
PYTHONUNBUFFERED: "1"
PYTHONPATH: /app/src:/app/domains/seat/src
ports:
- "127.0.0.1:8511:8000"
volumes:
- ../../artifacts/runs:/app/artifacts/runs
- ../../artifacts/user-presets:/app/artifacts/user-presets
- ../../config/modes/vehicles/denza_n7/user:/app/config/modes/vehicles/denza_n7/user
read_only: true
tmpfs:
- /tmp:size=64m,mode=1777
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
pids_limit: 256
healthcheck:
test:
- CMD
- python
- -c
- import urllib.request; urllib.request.urlopen("http://127.0.0.1:8000/login", timeout=3)
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
logging:
driver: json-file
options:
max-size: 10m
max-file: "3"