appstore-1panel/apps/mastodon/4.3.6/docker-compose.yml
Meng Sen 40e5a36018 发布应用 长毛象 Mastodon
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
2025-03-14 17:01:06 +08:00

57 lines
1.6 KiB
YAML

networks:
1panel-network:
external: true
services:
mastodon:
image: ghcr.io/mastodon/mastodon:v4.3.6
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
command: bundle exec puma -C config/puma.rb
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:3000
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${APP_ENV_FILE:-/etc/1panel/envs/mastodon/mastodon.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${MASTODON_ROOT_PATH}/system:/mastodon/public/system
environment:
- TZ=Asia/Shanghai
streaming-mastodon:
image: ghcr.io/mastodon/mastodon-streaming:v4.3.6
container_name: streaming-${CONTAINER_NAME}
restart: always
command: node ./streaming/index.js
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_STREAM}:4000
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${APP_ENV_FILE:-/etc/1panel/envs/mastodon/mastodon.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
environment:
- TZ=Asia/Shanghai
sidekiq-mastodon:
image: ghcr.io/mastodon/mastodon:v4.3.6
container_name: sidekiq-${CONTAINER_NAME}
restart: always
command: bundle exec sidekiq
networks:
- 1panel-network
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${APP_ENV_FILE:-/etc/1panel/envs/mastodon/mastodon.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${MASTODON_ROOT_PATH}/system:/mastodon/public/system
environment:
- TZ=Asia/Shanghai