mastodon/docker-compose-web.yml

53 lines
1.2 KiB
YAML

version: '3'
services:
web:
build: .
image: tootsuite/mastodon
restart: always
env_file: .env.production
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
networks:
- external_network
- internal_network
healthcheck:
# prettier-ignore
test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:3000/health || exit 1']
ports:
- '192.168.135.76:3000:3000'
volumes:
- ./public/system:/mastodon/public/system
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
streaming:
build: .
image: tootsuite/mastodon
restart: always
env_file: .env.production
command: node ./streaming
networks:
- external_network
- internal_network
healthcheck:
# prettier-ignore
test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:4000/api/v1/streaming/health || exit 1']
ports:
- '192.168.135.76:4000:4000'
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
networks:
external_network:
internal_network:
internal: true