-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
87 lines (84 loc) · 2.62 KB
/
docker-compose.yml
File metadata and controls
87 lines (84 loc) · 2.62 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
services:
app:
build:
context: .
dockerfile: .dockerdev/Dockerfile
volumes:
- .:/app:cached
- bundle:/usr/local/bundle
- rails_cache:/app/tmp/cache
- node_modules:/app/node_modules
tmpfs:
- /tmp:exec
- /app/tmp/pids
ports:
- "${PORT:-3000}:${PORT:-3000}"
environment:
RAILS_ENV: development
VALERA_DATABASE_HOST: postgres
DATABASE_URL: postgresql://valera:password@postgres:5432/valera_development
REDIS_URL: redis://redis:6379/0
HISTFILE: /app/log/.bash_history
EDITOR: vim
# Server port, host and protocol (for URL generation and subdomain routing)
PORT: ${PORT:-3000}
HOST: ${HOST:-lvh.me}
PROTOCOL: ${PROTOCOL:-http}
# Telegram Platform Bot (from host environment)
PLATFORM_BOT_TOKEN: ${PLATFORM_BOT_TOKEN}
PLATFORM_BOT_USERNAME: ${PLATFORM_BOT_USERNAME}
PLATFORM_ADMIN_CHAT_ID: ${PLATFORM_ADMIN_CHAT_ID}
# LLM Provider API Keys (from host environment)
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY}
OPENAI_API_KEY: ${OPENAI_API_KEY}
GEMINI_API_KEY: ${GEMINI_API_KEY}
DEEPSEEK_API_KEY: ${DEEPSEEK_API_KEY}
# Bugsnag
BUGSNAG_API_KEY: ${BUGSNAG_API_KEY}
# Admin and demo user credentials (for seeds)
ADMIN_EMAIL: ${ADMIN_EMAIL:-admin@example.com}
ADMIN_PASSWORD: ${ADMIN_PASSWORD:-password}
TENANT_DEMO_USER_EMAIL: ${TENANT_DEMO_USER_EMAIL:-tenant@super-valera.ru}
TENANT_DEMO_USER_PASSWORD: ${TENANT_DEMO_USER_PASSWORD:-password}
# Web console permissions
WEB_CONSOLE_PERMISSIONS: ${WEB_CONSOLE_PERMISSIONS}
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
stdin_open: true
tty: true
postgres:
image: postgres:17-alpine
environment:
POSTGRES_USER: valera
POSTGRES_PASSWORD: password
POSTGRES_DB: valera_development
volumes:
- postgres_dev:/var/lib/postgresql/data
# Ports exposed only within docker network by default
# Uncomment to access from host (may conflict with local postgres)
# ports:
# - "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U valera"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: valkey/valkey:8-alpine
# Ports exposed only within docker network by default
# Uncomment to access from host (may conflict with local redis)
# ports:
# - "6379:6379"
healthcheck:
test: ["CMD", "valkey-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_dev:
bundle:
rails_cache:
node_modules: