fix readme
commit
f75219183a
@ -0,0 +1,2 @@
|
||||
pg.dump
|
||||
fly.toml
|
@ -0,0 +1,7 @@
|
||||
FROM redis:alpine AS redis-server
|
||||
ADD start-redis-server.sh /usr/bin/
|
||||
RUN chmod +x /usr/bin/start-redis-server.sh
|
||||
CMD ["start-redis-server.sh"]
|
||||
|
||||
FROM tootsuite/mastodon:edge
|
||||
ENTRYPOINT []
|
@ -0,0 +1,64 @@
|
||||
app = ""
|
||||
|
||||
kill_signal = "SIGINT"
|
||||
kill_timeout = 5
|
||||
|
||||
[env]
|
||||
WEB_DOMAIN=""
|
||||
LOCAL_DOMAIN=""
|
||||
LANG="en_US.UTF-8"
|
||||
RAILS_ENV = "production"
|
||||
RAILS_LOG_TO_STDOUT = "enabled"
|
||||
RAILS_SERVE_STATIC_FILES = "enabled"
|
||||
RACK_ENV = "production"
|
||||
HEROKU=true
|
||||
WEB_CONCURRENCY = "1"
|
||||
REDIS_HOST = "mstdn-redis.internal"
|
||||
REDIS_PORT = "6379"
|
||||
S3_ENABLED=false
|
||||
SINGLE_USER_MODE=true
|
||||
OTP_SECRET=""
|
||||
SECRET_KEY_BASE=""
|
||||
DATABASE_URL=""
|
||||
|
||||
[deploy]
|
||||
release_command = "bundle exec rails db:migrate"
|
||||
|
||||
[mounts]
|
||||
processes = ["rails"]
|
||||
source = "mastodon_uploads"
|
||||
destination = "/opt/mastodon/public/system"
|
||||
|
||||
[processes]
|
||||
rails = "bundle exec rails s -p 8080"
|
||||
sidekiq = "bundle exec sidekiq"
|
||||
|
||||
[[statics]]
|
||||
guest_path = "/opt/mastodon/public"
|
||||
url_prefix = "/"
|
||||
|
||||
[[services]]
|
||||
internal_port = 8080
|
||||
processes = ["rails"]
|
||||
protocol = "tcp"
|
||||
|
||||
[[services.ports]]
|
||||
handlers = ["http"]
|
||||
port = 80
|
||||
|
||||
[[services.ports]]
|
||||
handlers = ["tls", "http"]
|
||||
port = 443
|
||||
|
||||
[[services.tcp_checks]]
|
||||
grace_period = "1s"
|
||||
interval = "15s"
|
||||
restart_limit = 0
|
||||
timeout = "2s"
|
||||
|
||||
[[services.http_checks]]
|
||||
path = "/health"
|
||||
grace_period = "1s"
|
||||
interval = "15s"
|
||||
restart_limit = 0
|
||||
timeout = "2s"
|
@ -0,0 +1,7 @@
|
||||
app = "ms"
|
||||
|
||||
[deploy]
|
||||
release_command = "bundle exec rails db:migrate"
|
||||
|
||||
[env]
|
||||
RAILS_ENV = "production"
|
@ -0,0 +1,5 @@
|
||||
app = "mstdn-redis"
|
||||
|
||||
[[mounts]]
|
||||
source = "mstdn_redis"
|
||||
destination = "/data"
|
@ -0,0 +1,7 @@
|
||||
app = "ms"
|
||||
|
||||
[deploy]
|
||||
release_command = "bundle exec rails db:setup"
|
||||
|
||||
[env]
|
||||
RAILS_ENV = "production"
|
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
sysctl vm.overcommit_memory=1
|
||||
sysctl net.core.somaxconn=1024
|
||||
redis-server --dir /data/ --appendonly yes
|
Loading…
Reference in New Issue