add docker support
This commit is contained in:
20
docker-compose.yml
Normal file
20
docker-compose.yml
Normal file
@ -0,0 +1,20 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
frontend:
|
||||
image: git.littlefat.tech/deploy/boluo/admin:latest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: .docker/Dockerfile
|
||||
ports:
|
||||
- "5000:5000"
|
||||
environment:
|
||||
- BASE_URL=http://192.168.60.120:8082
|
||||
env_file:
|
||||
- .env
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "--spider", "http://localhost:5000"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
Reference in New Issue
Block a user