Repository navigation
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
78 lines (76 loc) · 2.11 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
78 lines (76 loc) · 2.11 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
# Docker Compose file for running Quepid in Production mode.
# Allows you to update your Quepid installation over time.
services:
mysql:
container_name: quepid_prod_db
image: mysql:8.4.3
ports:
- 3306:3306
restart: always
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
retries: 5
start_period: 10s
environment:
- MYSQL_ROOT_PASSWORD=password
volumes:
- ./volumes/mysql_data:/var/lib/mysql
app:
container_name: quepid_prod_app
image: o19s/quepid:latest
#env_file: # Use this approach if you would rather manage your environment settings elsewhere.
# - .env.prod
depends_on:
mysql:
condition: service_healthy
environment:
- PORT=3000
- RACK_ENV=production
- RAILS_ENV=production
- DATABASE_URL=mysql2://root:password@mysql:3306/quepid
- FORCE_SSL=false
- MAX_THREADS=2
- WEB_CONCURRENCY=2
- SECRET_KEY_BASE=some_value_needed_here
- RAILS_LOG_TO_STDOUT=true
- RAILS_SERVE_STATIC_FILES=true
- TC_URL=
- PRIVACY_URL=
- COOKIES_URL=
- QUEPID_DOMAIN=example.com
- EMAIL_MARKETING_MODE=false
- QUEPID_DEFAULT_SCORER=AP@10
- SIGNUP_ENABLED=true
- COMMUNAL_SCORERS_ONLY=false
- EMAIL_PROVIDER=
- EMAIL_SENDER=
- QUERY_LIST_SORTABLE=true
command: "foreman s -f Procfile"
ports:
# - 80:3000 # Map to port 80 for outside users when you are not using Nginx
- 3000:3000
links:
- mysql
- ollama
nginx:
image: nginx:1.31.8-alpine-slim
container_name: quepid_nginx
ports:
- "443:8443"
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./.ssl/:/etc/nginx/certs
links:
- app
# You can remove Ollama (and the links to it from app) if you don't want to use it to power AI judges
ollama:
image: ollama/ollama
container_name: ollama
ports:
- "11434:11434"
volumes:
- ./volumes/ollama/data:/tmp/data
environment:
OLLAMA_MODELS: "/tmp/data/.ollama/models"