-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-test.yml
46 lines (45 loc) · 1.16 KB
/
docker-compose-test.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
version: '3'
services:
# ----------------------------------------
decidim:
build:
context: .
dockerfile: ./docker/decidim.Dockerfile
args:
- RAILS_ENV=${RAILS_ENV}
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
- FORCE_SSL=${FORCE_SSL}
- MAILER_SENDER=${MAILER_SENDER}
ports:
- '3000:3000'
env_file:
- .env
volumes:
- gem_cache:/usr/local/bundle/gems
- node_modules_cache:/decidim/node_modules
- tmp_cache:/decidim/tmp
- ./docker/entrypoints:/decidim/docker/entrypoints
- ~/decidim-storage:/decidim/storage
entrypoint: docker/entrypoints/decidim.sh
command: "/decidim/bin/rails s -b 0.0.0.0"
restart: on-failure
# Sidekiq
delayed_job:
image: decidim-monterrey_decidim
command: "bundle exec bin/delayed_job restart"
env_file:
- .env
depends_on:
- decidim
# Sidekiq
clockwork:
image: decidim-monterrey_decidim
command: "bundle exec clockwork config/clockwork.rb"
depends_on:
- decidim
restart: on-failure
# ----------------------------------------
volumes:
gem_cache: {}
node_modules_cache: {}
tmp_cache: {}