-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 923 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (40 loc) · 923 Bytes
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
version: "3.9"
services:
db:
image: postgres
environment:
POSTGRES_PASSWORD: password
sidekiq:
build: .
image: cardeons-backend
environment:
SERVICE: sidekiq
REDIS_URL: redis://redis/1
DATABASE_URL: postgres://postgres:password@db/cardeons-production
RAILS_ENV: production
SECRET_KEY_BASE: test
ENC_KEY: test
DEV_TOOL_ENABLED: enabled
depends_on:
- db
- redis
command: bundle exec sidekiq
redis:
image: redis
web:
build: .
image: cardeons-backend
command: bundle exec rails server -b 0.0.0.0
environment:
SERVICE: web
REDIS_URL: redis://redis/1
DATABASE_URL: postgres://postgres:password@db/cardeons-production
RAILS_ENV: production
SECRET_KEY_BASE: test
ENC_KEY: test
DEV_TOOL_ENABLED: enabled
ports:
- 3000:3000
depends_on:
- db
- redis