forked from ledermann/docker-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (64 loc) · 1.62 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:
db:
image: postgres:13-alpine
environment:
- POSTGRES_PASSWORD=foobar123
volumes:
- db-data:/var/lib/postgresql/data
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.11.2
volumes:
- es-data:/usr/share/elasticsearch/data
environment:
- discovery.type=single-node
redis:
image: redis:alpine
app: &app_base
build:
context: .
environment:
- ELASTICSEARCH_HOST=elasticsearch
- REDIS_SIDEKIQ_URL=redis://redis:6379/0
- REDIS_CABLE_URL=redis://redis:6379/1
- REDIS_CACHE_URL=redis://redis:6379/2
- SECRET_KEY_BASE=f0ee8496d1ddeb69fa0980d0580ff0f174262e61b53e8a318c990a193661f45f84b07a995d33ca8749eb6e0085d375201d319ed0fdaab9aa469e3b9b96f269d6
- DB_HOST=db
- DB_USER=postgres
- DB_PASSWORD=foobar123
- RAILS_MAX_THREADS
- APP_HOST
- APP_SSL
- FRONTEND_HOST
- APP_ADMIN_PASSWORD=secret
- PIWIK_HOST=piwik.example.org
- PIWIK_ID=42
- SMTP_SERVER
- SMTP_PORT
- SMTP_DOMAIN
- SMTP_USERNAME
- SMTP_PASSWORD
- SMTP_AUTHENTICATION
- SMTP_ENABLE_STARTTLS_AUTO
- AWS_ACCESS_KEY_ID=1234
- AWS_SECRET_ACCESS_KEY=1234abcdef
- AWS_BUCKET=mybucket
- AWS_REGION=eu-central-1
- BLAZER_DATABASE_URL
ports:
- "3000"
links:
- elasticsearch
- db
- redis
worker:
<<: *app_base
command: bundle exec sidekiq
ports: []
depends_on:
- app
volumes:
db-data:
es-data: