-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml.example
54 lines (46 loc) · 1.15 KB
/
docker-compose.yml.example
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
version: '2'
services:
web:
build: .
ports:
- '3000:3000'
volumes:
- .:/usr/src/app
- ./vendor/bundle:/usr/shared/bundle
depends_on:
- db
- redis
environment:
- GITHUB_ID=YOUR_GITHUB_ID
- GITHUB_SECRET=YOUR_GITHUB_SECRET
- HOSTNAME_HOST=localhost
- HOSTNAME_PORT=3000
- TWITTER_ID=YOUR_TWITTER_ID
- TWITTER_SECRET=YOUR_TWITTER_SECRECT
- DB_HOST=db
- DB_USER=5xruby
- DB_PASS=password
- DB_NAME=5xruby
- REDIS_URL=redis://redis:6379/0
- MAIL_HOST=5xruby.tw
- SMTP_HOST=localhost
- SMTP_PORT=587
- SMTP_USER=5xruby
- SMTP_PASS=password
- SMTP_AUTHENTICATION=plain
- SMTP_STARTSSL=true
- SECRET_KEY_BASE=YOUR_RAILS_SECRET
- RAILS_SERVE_STATIC_FILES=true
db:
image: postgres:9.6-alpine
environment:
- POSTGRES_USER=5xruby
- POSTGRES_PASSWORD=password
- POSTGRES_DB=5xruby
volumes:
- ./postgres:/var/lib/postgresql/data
- /usr/share/zoneinfo:/usr/share/zoneinfo
redis:
image: redis:3.2-alpine
volumes:
- /usr/share/zoneinfo:/usr/share/zoneinfo