forked from alexeygrigorev/codehive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
72 lines (67 loc) · 1.58 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
72 lines (67 loc) · 1.58 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
66
67
68
69
70
71
72
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "7433:7433"
env_file:
- .env
environment:
- CODEHIVE_DATABASE_URL=${CODEHIVE_DATABASE_URL:-postgresql+asyncpg://codehive:codehive@postgres:5432/codehive}
- CODEHIVE_REDIS_URL=${CODEHIVE_REDIS_URL:-redis://redis:6379/0}
- CODEHIVE_HOST=${CODEHIVE_HOST:-0.0.0.0}
- CODEHIVE_PORT=${CODEHIVE_PORT:-7433}
- CODEHIVE_DEBUG=${CODEHIVE_DEBUG:-false}
- CODEHIVE_ANTHROPIC_API_KEY=${CODEHIVE_ANTHROPIC_API_KEY:-}
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
networks:
- codehive
postgres:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_USER: codehive
POSTGRES_PASSWORD: codehive
POSTGRES_DB: codehive
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U codehive"]
interval: 5s
timeout: 5s
retries: 5
networks:
- codehive
frontend:
build:
context: ./web
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "80:80"
depends_on:
backend:
condition: service_healthy
networks:
- codehive
redis:
image: redis:7
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
networks:
- codehive
volumes:
postgres_data:
networks:
codehive:
driver: bridge