-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-prod.yml
45 lines (42 loc) · 1.09 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
version: '3'
services:
app:
image: pcourbin/decidim:0.21.0
environment:
- DATABASE_URL=postgres://decidim:pgpassword@pg/app_production
- RAILS_SERVE_STATIC_FILES=true # If RAILS_ENV=production and you don't have NGINX before requests
- RAILS_ENV=production
- DB_CREATE=true
- ADMIN_ENABLE=true
- ADMIN_PASSWORD=myadminpassword
- DEFAULT_LOCALE=en
- 'DEFAULT_LOCALES_AVAILABLE=[:en,:fr,:es,:de,:it,:ca]'
- REDIS_URL=redis://redis:6379
- SECRET_KEY_BASE=my_secret_key_base
- SMTP_PASSWORD=mypassword
- SMTP_ADDRESS=smtp.gmail.com
- SMTP_DOMAIN=gmail.com
ports:
- 3000:3000
links:
- pg
- redis
restart: always
pg:
image: postgres
environment:
- POSTGRES_USER=decidim
- POSTGRES_PASSWORD=pgpassword
volumes:
- pg-data:/var/lib/postgresql/data
restart: always
redis:
image: redis
volumes:
- redis-data:/data
restart: always
volumes:
pg-data: {}
redis-data: {}