This repository has been archived by the owner on Jun 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
69 lines (68 loc) · 1.6 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
58
59
60
61
62
63
64
65
66
67
68
69
version: "3.4"
services:
web:
build:
context: .
args:
- RAILS_MASTER_KEY=$RAILS_MASTER_KEY
- TENANT_MASTER_KEY=$TENANT_MASTER_KEY
- RAILS_ENV=$RAILS_ENV
environment:
DB_HOST: db
REDIS_URL: redis://redis:6379
ports:
- "80:3000"
depends_on:
- db
- redis
- sidekiq
volumes:
- .:/app
- ./vendor/bundle:/app/vendor/bundle
- ./.bundle:/app/.bundle
- ./node_modules:/app/node_modules
redis:
image: "redis:alpine"
db:
image: "postgres:12.1"
environment:
POSTGRES_USER: nokul
POSTGRES_PASSWORD: nokul
sidekiq:
build:
context: .
args:
- RAILS_MASTER_KEY=$RAILS_MASTER_KEY
- TENANT_MASTER_KEY=$TENANT_MASTER_KEY
- RAILS_ENV=$RAILS_ENV
environment:
DB_HOST: db
REDIS_URL: redis://redis:6379
command: sh -c "bundle exec sidekiq -q high -q low -q mailers"
depends_on:
- db
- redis
test:
build:
context: .
args:
- RAILS_MASTER_KEY=$RAILS_MASTER_KEY
- TENANT_MASTER_KEY=$TENANT_MASTER_KEY
- RAILS_ENV=$RAILS_ENV
- NODE_ENV=$NODE_ENV
environment:
DB_HOST: db
REDIS_URL: redis://redis:6379
RAILS_MASTER_KEY: $RAILS_MASTER_KEY
CODACY_PROJECT_TOKEN: $CODACY_PROJECT_TOKEN
RAILS_ENV: $RAILS_ENV
NODE_ENV: $NODE_ENV
CI: $CI
depends_on:
- db
- redis
volumes:
- $HOME/bundle:/app/vendor/bundle
- $HOME/.bundle_config:/app/.bundle
- $HOME/node_modules:/app/node_modules
- $HOME/coverage:/app/coverage