forked from o19s/quepid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
50 lines (47 loc) · 1.19 KB
/
docker-compose.prod.yml
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
# Docker Compose file for running Quepid in Production mode.
# Allows you to update your Quepid installation over time.
version: '3'
services:
mysql:
container_name: quepid_prod_db
image: mysql:5.6.37
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=password
volumes:
- ./volumes/mysql_data:/var/lib/mysql
redis:
container_name: quepid_prod_redis
image: redis:6.0.5
ports:
- 6379:6379
app:
container_name: quepid_prod_app
image: o19s/quepid:latest
environment:
- PORT=3000
- RACK_ENV=production
- RAILS_ENV=production
- DATABASE_URL=mysql2://root:password@mysql:3306/quepid
- REDIS_URL=redis://redis:6379/1
- FORCE_SSL=false
- MAX_THREADS=2
- WEB_CONCURRENCY=2
- SECRET_KEY_BASE=some_value_needed_here
- TC_URL=
- PRIVACY_URL=
- COOKIES_URL=
- EMAIL_MARKETING_MODE=false
- DEFAULT_QUEPID_SCORER=AP@10
- SIGNUP_ENABLED=true
- COMMUNAL_SCORERS_ONLY=false
command: "foreman s -f Procfile"
ports:
- 80:3000 # Map to port 80 for outside users.
links:
- mysql
- redis
depends_on:
- mysql
- redis