init
This commit is contained in:
Executable
+50
@@ -0,0 +1,50 @@
|
||||
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
|
||||
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"
|
||||
Reference in New Issue
Block a user