-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 958 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (41 loc) · 958 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
41
42
43
version: '3'
# RAILS_MASTER_KEY must be provided in .env file or ENV
services:
db:
env_file: .env # must include POSTGRES_PASSWORD, POSTGRES_USER, POSTGRES_HOST
image: postgres:14.7
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
env_file: .env # must include POSTGRES_PASSWORD, POSTGRES_USER, POSTGRES_HOST
image: 'redis:6.2-alpine'
command: redis-server --requirepass ${REDIS_PASSWORD}
volumes:
- redis_data:/var/lib/redis/data
sidekiq:
env_file: .env
build: .
command: sidekiq -C config/sidekiq.yml
depends_on:
- db
- redis
environment:
- REDIS_HOST=redis
- POSTGRES_HOST=db
web:
env_file: .env
build: .
ports:
- "5000:5000"
depends_on:
- db
- redis
environment:
- REDIS_HOST=redis
- POSTGRES_HOST=db
- RAILS_MASTER_KEY
volumes:
- ./log:/app/log
volumes:
postgres_data:
redis_data: