forked from CodiTramuntana/decidim-fapac-app
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
55 lines (55 loc) · 1.49 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
version: '3'
services:
app:
build: .
volumes:
- ./entrypoint.sh:/app/entrypoint.sh
- ./db/seeds.rb:/app/db/seeds.rb
- ./tmp/pids:/app/tmp/pids
# - .:/app
# - bundle:/usr/local/bundle
# - node_modules:/app/node_modules
environment:
- DATABASE_URL=postgres://postgres:decidim@db/decidim_affac
- SECRET_KEY_BASE=942a6ee88fe7cbc9bfd8f6dfeda5c3ef6503d0278e16dd40ec199109acde7fdda524d495a013d20e2b962dbafb6ddf1136278ea6d6ac2c134776bd445da9671e
- DECIDIM_FORCE_SSL=false
- QUEUE_ADAPTER=sidekiq
- REDIS_URL=redis://redis:6379/1
ports:
- 3000:3000
depends_on:
- db
- redis
sidekiq:
build: .
volumes:
- ./entrypoint.sh:/app/entrypoint.sh
# - .:/app
# - bundle:/usr/local/bundle
# - node_modules:/app/node_modules
environment:
- DATABASE_URL=postgres://postgres:decidim@db/decidim_affac
- SECRET_KEY_BASE=942a6ee88fe7cbc9bfd8f6dfeda5c3ef6503d0278e16dd40ec199109acde7fdda524d495a013d20e2b962dbafb6ddf1136278ea6d6ac2c134776bd445da9671e
- DECIDIM_FORCE_SSL=false
- QUEUE_ADAPTER=sidekiq
- REDIS_URL=redis://redis:6379/1
- RUN_SIDEKIQ=true
depends_on:
- redis
db:
image: postgres:16
ports:
- "54321:5432"
environment:
- POSTGRES_PASSWORD=decidim
volumes:
- pg_data:/var/lib/postgresql/data
redis:
image: redis
volumes:
- redis_data:/data
volumes:
pg_data:
redis_data:
# bundle:
# node_modules: