-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 828 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 828 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
32
33
34
35
36
37
38
# Simple Docker Compose for New Tab - Essential Services Only
# For basic usage without nginx, redis, or monitoring
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: newtab-backend
restart: unless-stopped
ports:
- "8000:8000"
environment:
- PYTHONPATH=/app
env_file:
- ./backend/.env
volumes:
- ./data/backend:/app/data
- ./logs/backend:/app/logs
logging:
driver: "local"
options:
max-size: "10m"
max-file: "3"
networks:
- default
- monitoring
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
monitoring:
external: false
name: monitoring