Ethanmaht commited on
Commit
cb5115d
·
verified ·
1 Parent(s): c84d53b

Upload docker-compose.yml

Browse files
Files changed (1) hide show
  1. docker-compose.yml +26 -0
docker-compose.yml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: '3.8'
2
+
3
+ services:
4
+ ones:
5
+ build:
6
+ context: .
7
+ target: runner
8
+ image: ones:latest
9
+ container_name: ones-service
10
+ ports:
11
+ - "7860:7860"
12
+ environment:
13
+ - DEBUG=false
14
+ - PORT=7860
15
+ - PYTHONUNBUFFERED=1
16
+ restart: unless-stopped
17
+ healthcheck:
18
+ test: ["CMD", "curl", "-f", "http://localhost:7860/"]
19
+ interval: 30s
20
+ timeout: 10s
21
+ retries: 3
22
+ logging:
23
+ driver: json-file
24
+ options:
25
+ max-size: "10m"
26
+ max-file: "3"