2022-11-19 11:23:23 +01:00
|
|
|
---
|
2022-11-19 11:31:24 +01:00
|
|
|
- containers.podman.podman_container:
|
2022-11-19 11:23:23 +01:00
|
|
|
name: redis_mastodon
|
|
|
|
image: redis:4.0-alpine
|
|
|
|
restart_policy: on-failure
|
|
|
|
|
2022-11-19 11:31:24 +01:00
|
|
|
- containers.podman.podman_container:
|
2022-11-19 11:23:23 +01:00
|
|
|
name: db_mastodon
|
2022-11-19 12:06:45 +01:00
|
|
|
image: postgres
|
2022-11-19 11:23:23 +01:00
|
|
|
restart_policy: on-failure
|
|
|
|
env:
|
2022-11-19 12:04:40 +01:00
|
|
|
POSTGRES_USER: "{{ db_user }}"
|
|
|
|
POSTGRES_PASSWORD: "{{ db_password }}"
|
|
|
|
POSTGRES_DB: "{{ db_name }}"
|
2022-11-19 11:23:23 +01:00
|
|
|
|
2022-11-19 11:31:24 +01:00
|
|
|
- containers.podman.podman_container:
|
2022-11-19 11:23:23 +01:00
|
|
|
name: app_mastodon
|
2022-11-19 12:16:40 +01:00
|
|
|
image: "tootsuite/mastodon"
|
2022-11-19 11:23:23 +01:00
|
|
|
command: bundle exec rails s -p 3000 -b '0.0.0.0'
|
|
|
|
restart_policy: on-failure
|
|
|
|
|
2022-11-19 11:31:24 +01:00
|
|
|
- containers.podman.podman_container:
|
2022-11-19 11:23:23 +01:00
|
|
|
name: sidekiq_mastodon
|
|
|
|
image: "moritzheiber/mastodon-docker"
|
|
|
|
command: bundle exec sidekiq -q default -q mailers -q pull -q push
|
|
|
|
restart_policy: on-failure
|
|
|
|
|
2022-11-19 11:31:24 +01:00
|
|
|
- containers.podman.podman_container:
|
2022-11-19 11:23:23 +01:00
|
|
|
project_name: streaming_mastodon
|
|
|
|
image: "moritzheiber/mastodon-docker"
|
|
|
|
command: npm run start
|
|
|
|
restart_policy: on-failure
|
|
|
|
|
|
|
|
# - docker_service:
|
|
|
|
# project_name: web
|
|
|
|
# definition:
|
|
|
|
# version: "2.3"
|
|
|
|
# services:
|
|
|
|
# web:
|
|
|
|
# image: "moritzheiber/mastodon-docker"
|
|
|
|
# networks:
|
|
|
|
# - "{{ mastodon_docker_network }}"
|
|
|
|
# command: bundle exec rails s -p 3000 -b '0.0.0.0'
|
|
|
|
# restart_policy: on-failure
|
|
|
|
# env_file: /mastodon/.env
|
|
|
|
# networks:
|
|
|
|
# "{{ mastodon_docker_network }}":
|
|
|
|
# external: true
|
|
|
|
# notify: "restart caddy webserver"
|