-
Notifications
You must be signed in to change notification settings - Fork 101
/
docker-compose.prod.yml
60 lines (59 loc) · 1.61 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
51
52
53
54
55
56
57
58
59
60
# 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
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
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_GA=
- QUEPID_DOMAIN=https://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
depends_on:
- mysql
nginx:
image: nginx:1.27.1-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