Skip to content

Commit

Permalink
update compose
Browse files Browse the repository at this point in the history
  • Loading branch information
microstudi committed Dec 4, 2023
1 parent 6968e91 commit 4d99071
Showing 1 changed file with 65 additions and 27 deletions.
92 changes: 65 additions & 27 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,37 @@ 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
- ./public/uploads:/app/public/uploads
- ./storage:/app/storage
restart: ${RESTART_POLICY:-always}
environment:
- DATABASE_URL=postgres://postgres:decidim@db/decidim_staging
- SECRET_KEY_BASE=132a6ee88fe7cbc9bfd8f6dfeda5casdf03d0278e16dd40ec199109acde7fdda524d495a013d20e2b962dbafb61234136278ea6d6ac2c134776bd445da9671e
- DECIDIM_FORCE_SSL=false
- QUEUE_ADAPTER=sidekiq
- REDIS_URL=redis://redis:6379/1
- RUN_RAILS=true
- RUN_SIDEKIQ=false
- DATABASE_URL=${DATABASE_URL:-postgres://postgres:decidim@db/decidim}
- SECRET_KEY_BASE=${SECRET_KEY_BASE:-132a6ee88fe7cbc9bfd8f6dfeda5casdf03d0278e16dd40ec199109acde7fdda524d495a013d20e2b962dbafb61234136278ea6d6ac2c134776bd445da9671e}
- DECIDIM_FORCE_SSL=${DECIDIM_FORCE_SSL:-false}
- QUEUE_ADAPTER=${QUEUE_ADAPTER:-sidekiq}
- REDIS_URL=${REDIS_URL:-redis://redis:6379/0}
- WEB_CONCURRENCY=${WEB_CONCURRENCY:-2}
- LOG_LEVEL=${LOG_LEVEL:-info}
- MAPS_PROVIDER=${MAPS_PROVIDER:-here}
- DECIDIM_ENABLE_HTML_HEADER_SNIPPETS=${DECIDIM_ENABLE_HTML_HEADER_SNIPPETS:-true}
- DECIDIM_ADMIN_PASSWORD_EXPIRATION_DAYS=${DECIDIM_ADMIN_PASSWORD_EXPIRATION_DAYS:-0}
- CHANGE_ACTIVE_STEP=${CHANGE_ACTIVE_STEP:-enabled}
- SEND_REMINDERS=${SEND_REMINDERS:-enabled}
- WEEKLY_NOTIFICATIONS_DIGEST=${WEEKLY_NOTIFICATIONS_DIGEST:-enabled}
- DAILY_NOTIFICATIONS_DIGEST=${DAILY_NOTIFICATIONS_DIGEST:-enabled}
- SMTP_STARTTLS_AUTO=${SMTP_STARTTLS_AUTO:-true}
- SMTP_USERNAME
- SMTP_PASSWORD
- SMTP_ADDRESS
- SMTP_DOMAIN=${SMTP_DOMAIN:-getxo.eus}
- SMTP_PORT=${SMTP_PORT:-25}
- DECIDIM_MAILER_SENDER
- MAPS_API_KEY
- MAPS_PROVIDER=${MAPS_PROVIDER:-here}
- RACK_ATTACK_SECRET
- CENSUS_URL
ports:
- 3000:3000
depends_on:
Expand All @@ -23,25 +42,46 @@ services:
sidekiq:
build: .
volumes:
- ./entrypoint.sh:/app/entrypoint.sh
# - .:/app
# - bundle:/usr/local/bundle
# - node_modules:/app/node_modules
- ./public/uploads:/app/public/uploads
- ./storage:/app/storage
restart: ${RESTART_POLICY:-always}
environment:
- DATABASE_URL=postgres://postgres:decidim@db/decidim_staging
- SECRET_KEY_BASE=132a6ee88fe7cbc9bfd8f6dfeda5casdf03d0278e16dd40ec199109acde7fdda524d495a013d20e2b962dbafb61234136278ea6d6ac2c134776bd445da9671e
- DECIDIM_FORCE_SSL=false
- QUEUE_ADAPTER=sidekiq
- REDIS_URL=redis://redis:6379/1
- DATABASE_URL=${DATABASE_URL:-postgres://postgres:decidim@db/decidim}
- SECRET_KEY_BASE=${SECRET_KEY_BASE:-132a6ee88fe7cbc9bfd8f6dfeda5casdf03d0278e16dd40ec199109acde7fdda524d495a013d20e2b962dbafb61234136278ea6d6ac2c134776bd445da9671e}
- DECIDIM_FORCE_SSL=${DECIDIM_FORCE_SSL:-false}
- QUEUE_ADAPTER=${QUEUE_ADAPTER:-sidekiq}
- REDIS_URL=${REDIS_URL:-redis://redis:6379/0}
- RUN_RAILS=false
- RUN_SIDEKIQ=true
- SIDEKIQ_CONCURRENCY=${SIDEKIQ_CONCURRENCY:-5}
- LOG_LEVEL=${LOG_LEVEL:-info}
- MAPS_PROVIDER=${MAPS_PROVIDER:-here}
- DECIDIM_ENABLE_HTML_HEADER_SNIPPETS=${DECIDIM_ENABLE_HTML_HEADER_SNIPPETS:-true}
- DECIDIM_ADMIN_PASSWORD_EXPIRATION_DAYS=${DECIDIM_ADMIN_PASSWORD_EXPIRATION_DAYS:-0}
- CHANGE_ACTIVE_STEP=${CHANGE_ACTIVE_STEP:-enabled}
- SEND_REMINDERS=${SEND_REMINDERS:-enabled}
- WEEKLY_NOTIFICATIONS_DIGEST=${WEEKLY_NOTIFICATIONS_DIGEST:-enabled}
- DAILY_NOTIFICATIONS_DIGEST=${DAILY_NOTIFICATIONS_DIGEST:-enabled}
- SMTP_STARTTLS_AUTO=${SMTP_STARTTLS_AUTO:-true}
- DECIDIM_MAILER_SENDER
- SMTP_USERNAME
- SMTP_PASSWORD
- SMTP_ADDRESS
- SMTP_DOMAIN=${SMTP_DOMAIN:-getxo.eus}
- SMTP_PORT=${SMTP_PORT:-25}
- MAPS_API_KEY
- MAPS_PROVIDER=${MAPS_PROVIDER:-here}
- RACK_ATTACK_SECRET
- CENSUS_URL
depends_on:
- db
- redis
db:
image: postgres:13
ports:
- "54321:5432"
image: postgres:14
environment:
- POSTGRES_PASSWORD=decidim
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-decidim}
- POSTGRES_DB=${POSTGRES_DB:-decidim}
volumes:
- pg_data:/var/lib/postgresql/data
redis:
Expand All @@ -50,6 +90,4 @@ services:
- redis_data:/data
volumes:
pg_data:
redis_data:
# bundle:
# node_modules:
redis_data:

0 comments on commit 4d99071

Please sign in to comment.