forked from ledermann/docker-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-cloud.yml
108 lines (102 loc) · 2.96 KB
/
docker-cloud.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
db:
image: 'postgres:alpine'
restart: always
environment:
- POSTGRES_PASSWORD=foobar
backup:
image: schickling/postgres-backup-s3
restart: always
links:
- db
environment:
- POSTGRES_HOST=db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=foobar
- POSTGRES_DATABASE=docker-rails_production
- S3_ACCESS_KEY_ID=my-access-id
- S3_SECRET_ACCESS_KEY=my-secret-access-key
- S3_BUCKET=my-bucket
- S3_REGION=my-region
- S3_PREFIX=backup
- SCHEDULE=@daily
elasticsearch:
image: 'docker.elastic.co/elasticsearch/elasticsearch:5.6.2'
restart: always
environment:
- xpack.security.enabled=false
- xpack.monitoring.enabled=false
memcached:
image: 'memcached:1.5-alpine'
restart: always
redis:
image: 'redis:4.0-alpine'
restart: always
app:
image: 'ledermann/docker-rails:latest'
autoredeploy: true
restart: always
environment:
- RAILS_ENV=production
- RAILS_MAX_THREADS=5
- 'ELASTICSEARCH_URL=http://elasticsearch:9200'
- MEMCACHED_HOST=memcached
- 'REDIS_SIDEKIQ_URL=redis://redis:6379/0'
- 'REDIS_CABLE_URL=redis://redis:6379/1'
- SECRET_KEY_BASE=b4f498b1c9f77a0644ae955e8e301c046eccbc5df7fd807c816aba1922db9c35c02a7a0b9efa72c07284a19807614f82c99c44bdd7cf1aea688b410df6911418
- DB_HOST=db
- DB_USER=postgres
- DB_PASSWORD=foobar
- APP_HOST=docker-rails.example.org
- APP_ADMIN_PASSWORD=secret
- PIWIK_HOST=piwik.example.org
- PIWIK_ID=42
- SKYLIGHT_AUTHENTICATION=my-secret-skylight-token
- CERT_NAME=docker-rails.example.org
- VIRTUAL_HOST=docker-rails.example.org
- LETSENCRYPT_HOST=docker-rails.example.org
- AWS_ACCESS_KEY_ID=my-access-key
- AWS_SECRET_ACCESS_KEY=my-secret-key
- AWS_BUCKET=my-bucket
- AWS_REGION=eu-central-1
- BLAZER_DATABASE_URL=postgres://postgres:foobar@db:5432/docker-rails_production
links:
- db
- elasticsearch
- memcached
- redis
ports:
- '80'
worker:
image: 'ledermann/docker-rails:latest'
autoredeploy: true
restart: always
environment:
- RAILS_ENV=production
- RAILS_MAX_THREADS=10
- 'ELASTICSEARCH_URL=http://elasticsearch:9200'
- MEMCACHED_HOST=memcached
- 'REDIS_SIDEKIQ_URL=redis://redis:6379/0'
- 'REDIS_CABLE_URL=redis://redis:6379/1'
- SECRET_KEY_BASE=b4f498b1c9f77a0644ae955e8e301c046eccbc5df7fd807c816aba1922db9c35c02a7a0b9efa72c07284a19807614f82c99c44bdd7cf1aea688b410df6911418
- APP_HOST=docker-rails.example.org
- DB_HOST=db
- DB_USER=postgres
- DB_PASSWORD=foobar
- SMTP_SERVER=smtp.gmail.com
- SMTP_PORT=587
- SMTP_DOMAIN=example.org
- SMTP_USERNAME=johndoe
- SMTP_PASSWORD=verysecret
- SMTP_AUTHENTICATION=plain
- SMTP_ENABLE_STARTTLS_AUTO=true
command: 'bundle exec sidekiq'
links:
- app
- db
- elasticsearch
- memcached
- redis