-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
58 lines (54 loc) · 1.15 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
version: '3'
services:
elasticsearch:
platform: linux/amd64
build: ./elasticsearch
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9200/_cat/health" ]
interval: 3s
timeout: 10s
retries: 3
start_period: 40s
environment:
- discovery.type=single-node
db:
platform: linux/amd64
image: postgres
environment:
POSTGRES_PASSWORD: password
PGPASSWORD: password
redis:
image: redis
sidekiq:
platform: linux/amd64
build: .
command: bundle exec sidekiq -C config/sidekiq.yml
volumes:
- .:/myapp
depends_on:
- db
- redis
environment:
REDIS_URL: redis://redis:6379/0
DB_HOST: db
DB_USERNAME: postgres
DB_PASSWORD: password
web:
platform: linux/amd64
build: .
command: rails s -b '0.0.0.0'
volumes:
- .:/myapp
depends_on:
db:
condition: service_started
sidekiq:
condition: service_started
elasticsearch:
condition: service_healthy
ports:
- 3000:3000
environment:
DB_HOST: db
DB_USERNAME: postgres
DB_PASSWORD: password