-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.17 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.17 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
services:
postgres:
image: docker.io/pgvector/pgvector:pg16
environment:
POSTGRES_USER: ${POSTGRES_USER:-ferret}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ferretops2026}
POSTGRES_DB: ${POSTGRES_DB:-ferretops}
ports:
- "5432:5432"
volumes:
- pgdata_prod:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-ferret} -d ${POSTGRES_DB:-ferretops}"]
interval: 10s
timeout: 5s
retries: 3
restart: unless-stopped
networks:
- shared_apps
backend:
image: ghcr.io/liitkud/ferretops-backend:canary
ports:
- "8000:8000"
user: root
env_file:
- .env
environment:
DATABASE_URL: postgresql://${POSTGRES_USER:-ferret}:${POSTGRES_PASSWORD:-ferretops2026}@postgres:5432/${POSTGRES_DB:-ferretops}
PROJECT_NAME: FerretOPS
LOG_LEVEL: INFO
ENVIRONMENT: production
command: uvicorn main:app --host 0.0.0.0 --port 8000
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
networks:
- shared_apps
volumes:
pgdata_prod:
networks:
shared_apps:
external: true
name: shared_apps