This commit is contained in:
26
docker-compose.prod.yml
Normal file
26
docker-compose.prod.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
h5:
|
||||
image: registry.boss160.cn/junhong/one-pipe-h5:latest
|
||||
container_name: one-pipe-h5
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3002:80"
|
||||
networks:
|
||||
- h5-network
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1/health"]
|
||||
interval: 30s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
start_period: 5s
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
networks:
|
||||
h5-network:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user