-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
57 lines (53 loc) · 2.3 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: "3.3"
services:
db:
image: postgres:14
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=decidim_bulletin_board
volumes:
- pg-data:/var/lib/postgresql/data
app:
build:
context: .
dockerfile: Dockerfile
environment:
- SECRET_KEY_BASE=8afc23b1d75eec471f9967b0887ca2cf24e2221a5dac375ca7f62656211c11b9d15d1516f6d04d64dae05632938304cc2e14aff636df4e70c84c89f12ddb0dfc
- DATABASE_URL=postgresql://postgres:postgres@db/decidim_bulletin_board
- RAILS_LOG_TO_STDOUT=1
- RAILS_SERVE_STATIC_FILES=1
- RACK_ENV=development
- RAILS_ENV=development
- REDIS_URL=redis://redis:6379
- CORS_ORIGIN_ALLOWED=*
- IDENTIFICATION_PRIVATE_KEY='{"kty":"RSA","n":"zMXsZpYPKkDlSmezX898y7zNOaJ7ENIN4kj4UhQ95Vm4HlgTpIs2VMMsO0eqynMaOR_G1mXdqbpbaJtXijBe4V8323QwGm6WVAa71E7pDXa5g6-uo5f8GePitN0YER9y2yNQN4uTaNzJiWV2uLBUYfMdj3SIif31YwLULHAOj3B_oleFK8coE_Qr3NzATcYBmsqE8AR4NljxTO6KDmP1SLdf5GBOBhOAIFbnL_Kpj2xkm7MS3hjMVKpiRhqA1UgX5oKZ8ixBv46fNJF0pBsHi3fHNjK9oZzgdx_AI-YFpdE_40-8bh_g9sWzxacqOM2-MdQLHbvRPEVltO3E8tr6I5YWrylcP7l9VD8OJeqjq2qFYHnGYdmLoD2XuXmI9EuBvSb9H4-qcartxZSIQCimKib_fxZvgrG1FSRRhK6YpvIdGv4-G2zfCCRsC4XD80TYI2bf-oYCoy7eU3_eVHFMV2yg4p1Wnuw2Vgq0edPL_bKaV9JvGx7F-U5juxNN0WZR9LzbPl4ReejzN95lyHgbj0nTH_u3bSpZmgJrQF-PwdnPcG46deVjJgUeosrlC4lQxVrRz0GL58BuFunnz2uYDBDrcJCiG60EbdkAFHjOcXU4wrUWATin7je_aqdBXhSnkTafcJAMvL7Y2Ld7vDge8nLqjAVlAi5am3rN0kqKT6M","e":"AQAB","kid":"a8e86f02ca27e1861bfc49e2a9a4614ca9068f8efdb6d42d19d3aab0eb2a31be"}'
volumes:
- ./docker-entrypoint.sh:/docker-entrypoint.sh
ports:
- "3000:3000"
depends_on:
- redis
worker:
build:
context: .
dockerfile: Dockerfile
environment:
- SECRET_KEY_BASE=8afc23b1d75eec471f9967b0887ca2cf24e2221a5dac375ca7f62656211c11b9d15d1516f6d04d64dae05632938304cc2e14aff636df4e70c84c89f12ddb0dfc
- DATABASE_URL=postgresql://postgres:postgres@db/decidim_bulletin_board
- RAILS_LOG_TO_STDOUT=1
- RACK_ENV=development
- RAILS_ENV=development
- REDIS_URL=redis://redis:6379
- RUN_SIDEKIQ=true
volumes:
- ./docker-entrypoint.sh:/docker-entrypoint.sh
depends_on:
- redis
redis:
image: "redis:alpine"
command: redis-server
volumes:
- redis_data:/data
volumes:
redis_data:
pg-data: