change to docker compose
This commit is contained in:
parent
ec6c3588a4
commit
7032679179
2 changed files with 11 additions and 54 deletions
|
@ -27,6 +27,7 @@ install_packages:
|
||||||
- package: "python-setuptools"
|
- package: "python-setuptools"
|
||||||
- package: skopeo
|
- package: skopeo
|
||||||
- package: containernetworking-plugins
|
- package: containernetworking-plugins
|
||||||
|
- package: docker-compose
|
||||||
|
|
||||||
|
|
||||||
uninstall_packages:
|
uninstall_packages:
|
||||||
|
|
|
@ -1,56 +1,12 @@
|
||||||
---
|
---
|
||||||
- name: Deploy Redis container
|
- name: Clone Mastodon repo
|
||||||
containers.podman.podman_container:
|
git:
|
||||||
name: redis_mastodon
|
repo: https://github.com/mastodon/mastodon.git
|
||||||
image: redis:4.0-alpine
|
dest: /usr/src/mastodon
|
||||||
restart_policy: on-failure
|
depth: 1
|
||||||
|
|
||||||
- name: Deploy postgres container
|
- name: Ensure Mastodon container is composed
|
||||||
containers.podman.podman_container:
|
community.docker.docker_compose:
|
||||||
name: db_mastodon
|
project_name: mastodon
|
||||||
image: postgres
|
project_src: /usr/src/mastodon
|
||||||
restart_policy: on-failure
|
state: present
|
||||||
env:
|
|
||||||
POSTGRES_USER: "{{ db_user }}"
|
|
||||||
POSTGRES_PASSWORD: "{{ db_password }}"
|
|
||||||
POSTGRES_DB: "{{ db_name }}"
|
|
||||||
|
|
||||||
- name: Deploy Mastodon container
|
|
||||||
containers.podman.podman_container:
|
|
||||||
name: app_mastodon
|
|
||||||
image: "tootsuite/mastodon"
|
|
||||||
#command: bundle exec rails s -p 3000 -b '0.0.0.0'
|
|
||||||
publish:
|
|
||||||
- 3000:3000
|
|
||||||
restart_policy: on-failure
|
|
||||||
|
|
||||||
- name: Deploy Sidekiq container
|
|
||||||
containers.podman.podman_container:
|
|
||||||
name: sidekiq_mastodon
|
|
||||||
image: "moritzheiber/mastodon-docker"
|
|
||||||
command: bundle exec sidekiq -q default -q mailers -q pull -q push
|
|
||||||
restart_policy: on-failure
|
|
||||||
|
|
||||||
# - name: Deploy streaming container
|
|
||||||
# containers.podman.podman_container:
|
|
||||||
# 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"
|
|
||||||
|
|
Loading…
Reference in a new issue