6 image: postgres:9.6-alpine
10 test: ["CMD", "pg_isready", "-U", "postgres"]
12 - ./postgres:/var/lib/postgresql/data
16 image: redis:5.0-alpine
20 test: ["CMD", "redis-cli", "ping"]
26 # image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.3
28 # - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
32 # test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
34 # - ./elasticsearch:/usr/share/elasticsearch/data
38 image: tootsuite/mastodon
40 env_file: .env.production
41 command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000 -b '0.0.0.0'"
46 test: ["CMD-SHELL", "wget -q --spider --header 'x-forwarded-proto: https' --proxy=off localhost:3000/api/v1/instance || exit 1"]
48 - "127.0.0.1:3000:3000"
54 - ./public/system:/mastodon/public/system
58 image: tootsuite/mastodon
60 env_file: .env.production
61 command: BIND=0.0.0.0 node ./streaming
66 test: ["CMD-SHELL", "wget -q --spider --header 'x-forwarded-proto: https' --proxy=off localhost:4000/api/v1/streaming/health || exit 1"]
68 - "127.0.0.1:4000:4000"
75 image: tootsuite/mastodon
77 env_file: .env.production
78 command: bundle exec sidekiq
86 - ./public/system:/mastodon/public/system
87 ## Uncomment to enable federation with tor instances along with adding the following ENV variables
88 ## http_proxy=http://privoxy:8118
89 ## ALLOW_ACCESS_TO_HIDDEN_SERVICE=true
97 # image: sirboops/privoxy
99 # - ./priv-config:/opt/config