-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
35 lines (32 loc) · 994 Bytes
/
docker-compose.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
version: "3.8"
services:
db:
image: postgres:13
environment:
- POSTGRES_PASSWORD=mysecretpassword
- POSTGRES_USER=decidim
- POSTGRES_ADMIN_PASSWORD=myadminsecretpassword
volumes:
- db-data:/var/lib/postgresql/data
decidim:
image: larueli/decidim-nonroot
ports:
- "3000:3000"
volumes:
- decidim-uploads:/decidim-app/public/uploads
- decidim-config:/decidim-app/config
environment:
- DATABASE_URL=postgres://decidim:mysecretpassword@db/decidim
# - RAILS_MASTER_KEY=34d3cc7c5305dde06865acfa473716cd
- RAILS_ENV=production
- RAILS_SERVE_STATIC_FILES=true
# This is necesary to encrypt passwords
- SECRET_KEY_BASE=23203391c825c600801d8f8657be32957b143291e1024e047cb04d0ba435c7e1a01db3d23d88fa0aaf77549a2845bfac3709f02171f0afc1cbd24f09a4fe1552
- RAILS_LOG_TO_STDOUT=true
- WAIT_HOSTS=db:5432
depends_on:
- db
volumes:
db-data:
decidim-uploads:
decidim-config: