質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -56,4 +56,118 @@
|
|
56
56
|
|
57
57
|
###補足情報(言語/FW/ツール等のバージョンなど)
|
58
58
|
|
59
|
+
docker-compose.ymlの内容になります
|
60
|
+
|
61
|
+
```
|
62
|
+
|
63
|
+
version: '2'
|
64
|
+
|
65
|
+
services:
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
db:
|
70
|
+
|
71
|
+
restart: always
|
72
|
+
|
73
|
+
image: postgres:alpine
|
74
|
+
|
75
|
+
### Uncomment to enable DB persistance
|
76
|
+
|
77
|
+
volumes:
|
78
|
+
|
79
|
+
- ./postgres:/var/lib/postgresql/data
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
redis:
|
84
|
+
|
85
|
+
restart: always
|
86
|
+
|
87
|
+
image: redis:alpine
|
88
|
+
|
89
|
+
### Uncomment to enable REDIS persistance
|
90
|
+
|
91
|
+
volumes:
|
92
|
+
|
93
|
+
- ./redis:/data
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
web:
|
98
|
+
|
99
|
+
restart: always
|
100
|
+
|
101
|
+
build: .
|
102
|
+
|
103
|
+
image: gargron/mastodon
|
104
|
+
|
105
|
+
env_file: .env.production
|
106
|
+
|
107
|
+
command: bundle exec rails s -p 3000 -b '0.0.0.0'
|
108
|
+
|
109
|
+
ports:
|
110
|
+
|
111
|
+
- "3000:3000"
|
112
|
+
|
113
|
+
depends_on:
|
114
|
+
|
115
|
+
- db
|
116
|
+
|
59
|
-
|
117
|
+
- redis
|
118
|
+
|
119
|
+
volumes:
|
120
|
+
|
121
|
+
- ./public/assets:/mastodon/public/assets
|
122
|
+
|
123
|
+
- ./public/system:/mastodon/public/system
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
streaming:
|
128
|
+
|
129
|
+
restart: always
|
130
|
+
|
131
|
+
build: .
|
132
|
+
|
133
|
+
image: gargron/mastodon
|
134
|
+
|
135
|
+
env_file: .env.production
|
136
|
+
|
137
|
+
command: npm run start
|
138
|
+
|
139
|
+
ports:
|
140
|
+
|
141
|
+
- "4000:4000"
|
142
|
+
|
143
|
+
depends_on:
|
144
|
+
|
145
|
+
- db
|
146
|
+
|
147
|
+
- redis
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
sidekiq:
|
152
|
+
|
153
|
+
restart: always
|
154
|
+
|
155
|
+
build: .
|
156
|
+
|
157
|
+
image: gargron/mastodon
|
158
|
+
|
159
|
+
env_file: .env.production
|
160
|
+
|
161
|
+
command: bundle exec sidekiq -q default -q mailers -q pull -q push
|
162
|
+
|
163
|
+
depends_on:
|
164
|
+
|
165
|
+
- db
|
166
|
+
|
167
|
+
- redis
|
168
|
+
|
169
|
+
volumes:
|
170
|
+
|
171
|
+
- ./public/system:/mastodon/public/system
|
172
|
+
|
173
|
+
```
|