Always recreate Mastodon containers #134
|
@ -6,6 +6,7 @@
|
||||||
group: "991"
|
group: "991"
|
||||||
loop:
|
loop:
|
||||||
- "postgres_data"
|
- "postgres_data"
|
||||||
|
- "postgres_config"
|
||||||
- "redis_data"
|
- "redis_data"
|
||||||
- "mastodon_data"
|
- "mastodon_data"
|
||||||
loop_control:
|
loop_control:
|
||||||
|
@ -21,10 +22,10 @@
|
||||||
src: files/configs/mastodon/vhost-mastodon
|
src: files/configs/mastodon/vhost-mastodon
|
||||||
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.mastodon.domain }}"
|
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ services.mastodon.domain }}"
|
||||||
|
|
||||||
- name: Copy postgresql config
|
- name: Copy PostgreSQL config
|
||||||
copy:
|
copy:
|
||||||
src: files/configs/mastodon/postgresql.conf
|
src: files/configs/mastodon/postgresql.conf
|
||||||
dest: "{{ services.mastodon.volume_folder }}/postgres_data/postgresql.conf"
|
dest: "{{ services.mastodon.volume_folder }}/postgres_config/postgresql.conf"
|
||||||
|
|
||||||
- name: Set up Mastodon
|
- name: Set up Mastodon
|
||||||
docker_compose:
|
docker_compose:
|
||||||
|
@ -62,6 +63,8 @@
|
||||||
test: ['CMD', 'pg_isready', '-U', 'postgres']
|
test: ['CMD', 'pg_isready', '-U', 'postgres']
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ services.mastodon.volume_folder }}/postgres_data:/var/lib/postgresql/data"
|
- "{{ services.mastodon.volume_folder }}/postgres_data:/var/lib/postgresql/data"
|
||||||
|
- "{{ services.mastodon.volume_folder }}/postgres_config:/config:ro"
|
||||||
|
command: postgres -c config_file=/config/postgresql.conf
|
||||||
environment:
|
environment:
|
||||||
- 'POSTGRES_HOST_AUTH_METHOD=trust'
|
- 'POSTGRES_HOST_AUTH_METHOD=trust'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue