-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
docker-compose-stable.yml
118 lines (118 loc) · 3.59 KB
/
docker-compose-stable.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
109
110
111
112
113
114
115
116
117
118
version: "2"
services:
db:
image: mysql:5.7
environment:
- MYSQL_DATABASE=plots
- MYSQL_USER=plots
- MYSQL_PASSWORD=plots
- MYSQL_RANDOM_ROOT_PASSWORD=true
volumes:
- ../config/my.cnf:/etc/mysql/my.cnf
# for configuration
- ../../mysql:/var/lib/mysql
# for persistence
- ../../dump:/docker-entrypoint-initdb.d
# for importing a dump
# if you want to re-import simply put away ../../mysql/*
web:
ports:
- "127.0.0.1:4000:4000"
build: ..
logging:
driver: "json-file"
options:
max-size: "1024m"
environment:
- COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME}
- DB_USER=${DB_USER}
- DB_NAME=${DB_NAME}
- DB_PASS=${DB_PASS}
- DB_HOST=${DB_HOST}
- RAILS_MAX_THREADS=${RAILS_MAX_THREADS}
- RAILS_ENV=${RAILS_ENV}
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
- RECAPTCHA_SECRET_KEY=${RECAPTCHA_SECRET_KEY}
- RECAPTCHA_SITE_KEY=${RECAPTCHA_SITE_KEY}
- SERVER_ADDRESS=${SERVER_ADDRESS}
- USERNAME=${USERNAME}
- EMAIL_PASSWORD=${EMAIL_PASSWORD}
- SMTP_USER=${SMTP_USER}
- SMTP_PASS=${SMTP_PASS}
- SMTP_HOST=${SMTP_HOST}
- SMTP_PORT=${SMTP_PORT}
- SMTP_AUTH=${SMTP_AUTH}
- SMTP_STLS=${SMTP_STLS}
- OAUTH_GOOGLE_APP_KEY=${OAUTH_GOOGLE_APP_KEY}
- OAUTH_GOOGLE_APP_SECRET=${OAUTH_GOOGLE_APP_SECRET}
- OAUTH_GITHUB_APP_KEY=${OAUTH_GITHUB_APP_KEY}
- OAUTH_GITHUB_APP_SECRET=${OAUTH_GITHUB_APP_SECRET}
- OAUTH_TWITTER_APP_KEY=${OAUTH_TWITTER_APP_KEY}
- OAUTH_TWITTER_APP_SECRET=${OAUTH_TWITTER_APP_SECRET}
- OAUTH_FACEBOOK_APP_KEY=${OAUTH_FACEBOOK_APP_KEY}
- OAUTH_FACEBOOK_APP_SECRET=${OAUTH_FACEBOOK_APP_SECRET}
- REDIS_URL=redis://redis:6379/0
- TWITTER_CONSUMER_KEY=${TWITTER_CONSUMER_KEY}
- TWITTER_CONSUMER_SECRET=${TWITTER_CONSUMER_SECRET}
- TWITTER_ACCESS_TOKEN=${TWITTER_ACCESS_TOKEN}
- TWITTER_ACCESS_TOKEN_SECRET=${TWITTER_ACCESS_TOKEN_SECRET}
- WEBSITE_HOST_PATTERN=${WEBSITE_HOST_PATTERN}
- TWEET_SEARCH=${TWEET_SEARCH}
- GOOGLE_JSON_KEY_FILE=${GOOGLE_JSON_KEY_FILE}
- GOOGLE_STORAGE_SECRET=${GOOGLE_STORAGE_SECRET}
- GOOGLE_STORAGE_KEY=${GOOGLE_STORAGE_KEY}
- GOOGLE_STORAGE_BUCKET_NAME=${GOOGLE_STORAGE_BUCKET_NAME}
- FOG_PROVIDER=${FOG_PROVIDER}
volumes:
- ..:/app
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
links:
- redis
- db
restart: on-failure:5
redis:
image: redis:latest
command: redis-server
sidekiq:
build: ..
command: bundle exec sidekiq -L log/sidekiq.log
depends_on:
- db
- redis
links:
- db
- redis
volumes:
- ..:/app
environment:
- RAILS_ENV=${RAILS_ENV}
- REDIS_URL=redis://redis:6379/0
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
- DB_USER=${DB_USER}
- DB_NAME=${DB_NAME}
- DB_PASS=${DB_PASS}
- DB_HOST=${DB_HOST}
- DB_SOCKET=${DB_SOCKET}
- SMTP_USER=${SMTP_USER}
- SMTP_PASS=${SMTP_PASS}
- SMTP_HOST=${SMTP_HOST}
- SMTP_PORT=${SMTP_PORT}
- SMTP_AUTH=${SMTP_AUTH}
- SMTP_STLS=${SMTP_STLS}
mailman:
build: ..
command: script/mailman_server
environment:
- RAILS_ENV=${RAILS_ENV}
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
- SERVER_ADDRESS=${SERVER_ADDRESS}
- USERNAME=${USERNAME}
- EMAIL_PASSWORD=${EMAIL_PASSWORD}
- DB_USER=${DB_USER}
- DB_NAME=${DB_NAME}
- DB_PASS=${DB_PASS}
- DB_HOST=${DB_HOST}
- DB_SOCKET=${DB_SOCKET}
volumes:
- ..:/app