Skip to content

Commit

Permalink
updated docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
biwek committed Dec 7, 2020
1 parent 9486bdf commit b6f7e67
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/sidekiq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
:schedule:
ScholarDigestJob:
description: "Send digest email to notify admins about scholars awaiting review"
cron: "0 7 * * 5" # every friday at 7am
cron: "0 7 * * 4" # every thursday at 7am
20 changes: 20 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ volumes:
external: false
db-data:
external: false
db-redis:
external : false

services:
https-portal:
Expand All @@ -18,6 +20,7 @@ services:
STAGE: 'production'
volumes:
- assets:/usr/share/nginx/html

prod_db:
image: postgres:9.6-alpine
env_file:
Expand All @@ -26,6 +29,22 @@ services:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data

redis:
image: redis:6.0-alpine
volumes:
- db-redis:/var/lib/redis/data

sidekiq:
build: .
command: bundle exec sidekiq
env_file:
- .env.prod
depends_on:
- redis
volumes:
- .:/usr/src/app

prod_app:
build:
context: .
Expand All @@ -37,5 +56,6 @@ services:
depends_on:
- prod_db
- https-portal
- sidekiq
volumes:
- assets:/usr/share/nginx/html
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ version: "2"
volumes:
db-data:
external: false
db-redis:
external: false

services:
db:
Expand All @@ -16,6 +18,8 @@ services:

redis:
image: redis:6.0-alpine
volumes:
- db-redis:/var/lib/redis/data

sidekiq:
build: .
Expand Down

0 comments on commit b6f7e67

Please sign in to comment.