This repository has been archived by the owner on Nov 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
79 lines (73 loc) · 1.85 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
70
71
72
73
74
75
76
77
78
79
version: '3.4'
services:
db:
image: postgres:alpine
environment:
- POSTGRES_PASSWORD
volumes:
- db-data:/var/lib/postgresql/data
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.4.3
volumes:
- es-data:/usr/share/elasticsearch/data
memcached:
image: memcached:1.5-alpine
redis:
image: redis:5.0-alpine
app: &app_base
image: dockerrails_app_development
build:
context: .
args:
- ADDITIONAL_PACKAGES=nodejs-current yarn
- EXECJS_RUNTIME=Node
- RAILS_ENV=development
- NODE_ENV=development
environment:
- ELASTICSEARCH_HOST=elasticsearch
- REDIS_SIDEKIQ_URL=redis://redis:6379/0
- REDIS_CABLE_URL=redis://redis:6379/1
- MEMCACHED_HOST=memcached
- SECRET_KEY_BASE=f0ee8496d1ddeb69fa0980d0580ff0f174262e61b53e8a318c990a193661f45f84b07a995d33ca8749eb6e0085d375201d319ed0fdaab9aa469e3b9b96f269d6
- DB_HOST=db
- DB_USER=postgres
- DB_PASSWORD=foobar123
- RAILS_ENV=development
- RAILS_MAX_THREADS
- APP_HOST
- FRONTEND_HOST
- APP_ADMIN_EMAIL=admin@example.org
- APP_ADMIN_PASSWORD=secret
- APP_EMAIL=reply@example.org
- 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:3000"
links:
- elasticsearch
- db
- redis
- memcached
volumes:
- .:/app
worker:
<<: *app_base
command: bundle exec sidekiq
ports: []
depends_on:
- app
volumes:
db-data:
es-data: