-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: '3.8'
services:
deepx-mini-server:
build:
context: .
dockerfile: Dockerfile
container_name: deepx-mini-server
ports:
- "3001:3001"
environment:
NODE_ENV: production
PORT: 3001
HOST: 0.0.0.0
OPENROUTER_API_KEY: ${OPENROUTER_API_KEY}
VERTEX_CREDENTIALS_PATHS: ${VERTEX_CREDENTIALS_PATHS:-/app/key/credentials.json}
VERTEX_DEFAULT_LOCATION: ${VERTEX_DEFAULT_LOCATION:-us-central1}
CORS_ORIGIN: ${CORS_ORIGIN:-*}
volumes:
- ./key:/app/key:ro # Mount credentials as read-only
- ./logs:/app/logs
- /etc/localtime:/etc/localtime:ro # Use host timezone
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3001/health', (r) => {if (r.statusCode !== 200) throw new Error(r.statusCode)})"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
- deepx-network
networks:
deepx-network:
driver: bridge