forked from ICEDTEACTF/CTFeed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (51 loc) · 1.26 KB
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (51 loc) · 1.26 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
51
services:
ctfeed:
build:
context: .
dockerfile: Dockerfile
container_name: ctfeed-bot
restart: unless-stopped
env_file:
- .env
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
ports:
- 127.0.0.1:5000:5000/tcp
volumes:
- ./src:/app/src
- ./ctfeed.py:/app/ctfeed.py
- ./pyproject.toml:/app/pyproject.toml
- ./uv.lock:/app/uv.lock
- ./README.md:/app/README.md
- ./alembic.ini:/app/alembic.ini
- ./migrations:/app/migrations
- ./startup.sh:/app/startup.sh
mem_limit: 700M
cpus: 1.5
healthcheck:
test: ["CMD", "python", "-c", "import sys; sys.exit(0)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
depends_on:
database:
condition: service_healthy
database:
image: postgres:18
restart: unless-stopped
environment:
POSTGRES_DB: icedtea
POSTGRES_USER: root
POSTGRES_PASSWORD: default_database_password # You can change this for security
volumes:
- "./db_data:/var/lib/postgresql"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U root -d icedtea"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s