Skip to content

Instantly share code, notes, and snippets.

@nacika-ins
Created August 27, 2018 15:55
Show Gist options
  • Save nacika-ins/2662d3058521f1de3e140b1bfb082a97 to your computer and use it in GitHub Desktop.
Save nacika-ins/2662d3058521f1de3e140b1bfb082a97 to your computer and use it in GitHub Desktop.
rpi用設定
version: '2'
services:
db:
restart: always
image: postgres:9.6-alpine
container_name: mastodon-db
volumes:
- ./data/postgres:/var/lib/postgresql/data
redis:
restart: always
image: redis
container_name: mastodon-redis
command: redis-server --appendonly yes
volumes:
- ./data/redis:/data
web:
restart: always
build: .
image: gilir/rpi-mastodon
container_name: mastodon-web
env_file: .env.production
ports:
- "3000:3000"
- "4000:4000"
depends_on:
- db
- redis
environment:
- WEB_CONCURRENCY=1
- MAX_THREADS=5
- SIDEKIQ_WORKERS=5
- RUN_DB_MIGRATIONS=true
volumes:
- ./data/public/system:/mastodon/public/system
- ./data/public/assets:/mastodon/public/assets
- ./data/public/packs:/mastodon/public/packs
-------
# Version
ARG MASTODON_VERSION=2.5.0rc1
# に変更
-------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment