forked from data.coop/ansible
Add missing bind mount and upgrade WriteFreely, close #192
This commit is contained in:
parent
068d3bd444
commit
46ffcd792c
|
@ -201,7 +201,7 @@ services:
|
||||||
domain: "write.{{ base_domain }}"
|
domain: "write.{{ base_domain }}"
|
||||||
volume_folder: "{{ volume_root_folder }}/writefreely"
|
volume_folder: "{{ volume_root_folder }}/writefreely"
|
||||||
pre_deploy_tasks: true
|
pre_deploy_tasks: true
|
||||||
version: latest
|
version: v0.15.0
|
||||||
mariadb_version: "11.2"
|
mariadb_version: "11.2"
|
||||||
allowed_sender_domain: true
|
allowed_sender_domain: true
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,15 @@
|
||||||
- name: Create subfolder for MariaDB data
|
- name: Create subfolder for MariaDB data
|
||||||
file:
|
file:
|
||||||
name: "{{ services.writefreely.volume_folder }}/db"
|
name: "{{ services.writefreely.volume_folder }}/db"
|
||||||
|
owner: "999"
|
||||||
|
group: "999"
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: Create subfolder for encryption keys
|
||||||
|
file:
|
||||||
|
name: "{{ services.writefreely.volume_folder }}/keys"
|
||||||
|
owner: "2"
|
||||||
|
group: "2"
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: Upload config.ini
|
- name: Upload config.ini
|
||||||
|
|
|
@ -3,21 +3,22 @@ version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: "mariadb:{{ services.writefreely.mariadb_version }}"
|
image: mariadb:{{ services.writefreely.mariadb_version }}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- "./db:/var/lib/mysql"
|
- "./db:/var/lib/mysql"
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_DATABASE=writefreely
|
MYSQL_DATABASE: writefreely
|
||||||
- MYSQL_ROOT_PASSWORD={{ writefreely_secrets.db_password }}
|
MYSQL_ROOT_PASSWORD: {{ writefreely_secrets.db_password }}
|
||||||
|
|
||||||
app:
|
app:
|
||||||
image: "writeas/writefreely:{{ services.writefreely.version }}"
|
image: ghcr.io/writefreely/writefreely:{{ services.writefreely.version }}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
- external_services
|
- external_services
|
||||||
volumes:
|
volumes:
|
||||||
|
- "./keys:/go/keys"
|
||||||
- "./config.ini:/go/config.ini"
|
- "./config.ini:/go/config.ini"
|
||||||
environment:
|
environment:
|
||||||
VIRTUAL_HOST: "{{ services.writefreely.domain }}"
|
VIRTUAL_HOST: "{{ services.writefreely.domain }}"
|
||||||
|
|
Loading…
Reference in a new issue