-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (49 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
50 lines (49 loc) · 1.28 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
48
49
50
# File: docker-compose.yml
services:
web:
build:
context: .
dockerfile: docker/Dockerfile
ports:
- "8000:8000"
environment:
- DATABASE_URL=sqlite:///data/users.db
- GITHUB_TOKEN=${GITHUB_TOKEN}
- SMTP_HOST=${SMTP_HOST}
- SMTP_PORT=${SMTP_PORT}
- SMTP_USER=${SMTP_USER}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- EMAIL_FROM=${EMAIL_FROM}
- SECRET_KEY=${SECRET_KEY}
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
- APP_URL=http://localhost:8000
volumes:
- ./data:/app/data
- ./logs:/app/logs
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
scheduler:
build:
context: .
dockerfile: docker/Dockerfile
command: python -m app.services.scheduler_service
environment:
- DATABASE_URL=sqlite:///data/users.db
- GITHUB_TOKEN=${GITHUB_TOKEN}
- SMTP_HOST=${SMTP_HOST}
- SMTP_PORT=${SMTP_PORT}
- SMTP_USER=${SMTP_USER}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- EMAIL_FROM=${EMAIL_FROM}
- SECRET_KEY=${SECRET_KEY}
volumes:
- ./data:/app/data
- ./logs:/app/logs
depends_on:
- web
restart: unless-stopped