Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
101 lines (95 loc) · 2.43 KB
/
Copy pathdocker-compose.yml
File metadata and controls
101 lines (95 loc) · 2.43 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: "3.8"
services:
db:
image: postgres:16-alpine
container_name: cluster_db
environment:
POSTGRES_USER: cluster_user
POSTGRES_PASSWORD: password
POSTGRES_DB: clusterdb
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U cluster_user -d clusterdb"]
interval: 5s
timeout: 5s
retries: 5
networks:
- cluster_network
server:
build:
context: ./server_app/.
dockerfile: Dockerfile
container_name: cluster_api
environment:
DATABASE_URL: postgresql://cluster_user:password@db:5432/clusterdb
API_HOST: 0.0.0.0
API_PORT: 8000
DEBUG: "True"
LOG_LEVEL: "INFO"
# AVALIN integration
AVALIN_API_URL: https://api.avalin.ru
AVALIN_API_KEY: ""
# Business partner features
BUSINESS_PARTNER_ENABLED: "True"
SPECIAL_OFFERS_ENABLED: "True"
SECRET_KEY: "change-me-in-production-use-long-random-string"
# AI features
DEEPSEEK_API_KEY: ""
DEEPSEEK_BASE_URL: https://llms.dotpoin.com/v1
ports:
- "8000:8000"
depends_on:
db:
condition: service_healthy
volumes:
- ./server_app:/app
networks:
- cluster_network
command: bash -c "sleep 5 && python -m uvicorn main:app --host 0.0.0.0 --port 8000 --reload"
seed:
build:
context: ./server_app/.
dockerfile: Dockerfile
container_name: cluster_seed
environment:
DATABASE_URL: postgresql://cluster_user:password@db:5432/clusterdb
depends_on:
db:
condition: service_healthy
volumes:
- ./server_app:/app
networks:
- cluster_network
command: python scripts/seed_demo_places.py
profiles: ["seed"]
client:
build:
context: ./client_app
dockerfile: Dockerfile
container_name: cluster_client
environment:
VITE_PROXY_TARGET: http://server:8000
# AVALIN integration
VITE_AVALIN_ENABLED: "True"
VITE_AVALIN_CDN_URL: https://cdn.avalin.ru/viewer/latest
# Business features
VITE_BUSINESS_PORTAL_ENABLED: "True"
# API URLs
VITE_API_BASE_URL: http://localhost:8000
ports:
- "5173:5173"
depends_on:
- server
volumes:
- ./client_app:/app
- /app/node_modules
networks:
- cluster_network
volumes:
postgres_data:
networks:
cluster_network:
driver: bridge