91smile commited on
Commit
b4a2fcd
·
verified ·
1 Parent(s): 9cbf4e6

Create docker-compose.yml

Browse files
Files changed (1) hide show
  1. docker-compose.yml +20 -0
docker-compose.yml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: '3.8'
2
+ services:
3
+ antigravity-api:
4
+ image: ghcr.io/zhongruan0522/antigravity2api-node-js:latest
5
+ container_name: antigravity-api
6
+ restart: unless-stopped
7
+ ports:
8
+ - "8045:8045"
9
+ environment:
10
+ - PANEL_USER=admin
11
+ - PANEL_PASSWORD=admin123321
12
+ - API_KEY=sk-admin123321
13
+ - IMAGE_BASE_URL=IP:8045
14
+
15
+ healthcheck:
16
+ test: [ "CMD", "node", "-e", "require('http').get('http://localhost:' + process.env.PORT + '/healthz', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) }).on('error', () => process.exit(1))" ]
17
+ interval: 30s
18
+ timeout: 10s
19
+ retries: 3
20
+ start_period: 40s