-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 1.05 KB
/
docker-compose.yml
File metadata and controls
47 lines (43 loc) · 1.05 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
41
42
43
44
45
46
47
version: '3.8'
services:
redwolf:
build:
context: .
dockerfile: Dockerfile
container_name: redwolf-api
ports:
- "8000:8000"
environment:
- DEBUG_MODE=false
volumes:
# 挂载数据目录(如果需要持久化数据)
- ./data:/app/data
# 挂载配置文件(如果有的话)
- ./config:/app/config
restart: unless-stopped
networks:
- redwolf-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# 如果需要数据库,可以添加数据库服务
# database:
# image: postgres:15-alpine
# container_name: redwolf-db
# environment:
# POSTGRES_DB: redwolf
# POSTGRES_USER: redwolf
# POSTGRES_PASSWORD: your_password_here
# volumes:
# - postgres_data:/var/lib/postgresql/data
# networks:
# - redwolf-network
# restart: unless-stopped
networks:
redwolf-network:
driver: bridge
# volumes:
# postgres_data: