forked from plastboks/Flaskmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
65 lines (61 loc) · 1.71 KB
/
docker-compose.dev.yml
File metadata and controls
65 lines (61 loc) · 1.71 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Development docker-compose with hot reloading
# Usage: docker compose -f docker-compose.dev.yml up
services:
app:
build:
context: .
target: production
container_name: flaskmarks-dev
restart: unless-stopped
ports:
- "5000:5000"
environment:
- DATABASE_URL=postgresql://flaskmarks:flaskmarks@db:5432/flaskmarks
- FLASK_SECRET_KEY=dev-secret-key-not-for-production
- FLASK_ENV=development
- FLASK_DEBUG=1
- RAG_ENABLED=${RAG_ENABLED:-true}
- GROQ_API_KEY=${GROQ_API_KEY:-}
- GROQ_MODEL=${GROQ_MODEL:-llama-3.1-70b-versatile}
- FLASKMARKS_ADMIN_USER=admin
- FLASKMARKS_ADMIN_PASSWORD=admin
- FLASKMARKS_ADMIN_EMAIL=admin@localhost
volumes:
- .:/app
- ./logs:/app/logs
- embeddings-cache:/app/cache
- model-cache:/app/sentence-transformers.model
depends_on:
db:
condition: service_healthy
networks:
- flaskmarks-network
entrypoint: ["/app/docker-entrypoint.sh"]
command: ["flask", "run", "--host=0.0.0.0", "--debug"]
db:
image: pgvector/pgvector:pg16
container_name: flaskmarks-db-dev
restart: unless-stopped
ports:
- "5432:5432"
environment:
- POSTGRES_USER=flaskmarks
- POSTGRES_PASSWORD=flaskmarks
- POSTGRES_DB=flaskmarks
volumes:
- postgres-data-dev:/var/lib/postgresql/data
- ./docker-initdb.d:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U flaskmarks -d flaskmarks"]
interval: 5s
timeout: 5s
retries: 5
networks:
- flaskmarks-network
volumes:
postgres-data-dev:
embeddings-cache:
model-cache:
networks:
flaskmarks-network:
driver: bridge