-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (31 loc) · 796 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (31 loc) · 796 Bytes
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
# To rebuild the image on every docker-compose up, use:
# docker-compose up --build
services:
app:
build:
context: .
dockerfile: Dockerfile
image: ai-content-writer:latest
container_name: ai-content-writer
ports:
- "8085:8085"
restart: unless-stopped
env_file:
- .env
# Configure logging
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Add a healthcheck to ensure the application is running properly
healthcheck:
test: ["CMD", "wget", "--spider", "--quiet", "http://localhost:8085"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Mount a volume for persistent data
volumes:
- ./history:/app/history
- ./logs:/app/logs