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 }}"
|
||||
volume_folder: "{{ volume_root_folder }}/writefreely"
|
||||
pre_deploy_tasks: true
|
||||
version: latest
|
||||
version: v0.15.0
|
||||
mariadb_version: "11.2"
|
||||
allowed_sender_domain: true
|
||||
|
||||
|
|
|
@ -3,6 +3,15 @@
|
|||
- name: Create subfolder for MariaDB data
|
||||
file:
|
||||
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
|
||||
|
||||
- name: Upload config.ini
|
||||
|
|
|
@ -3,21 +3,22 @@ version: "3.8"
|
|||
|
||||
services:
|
||||
db:
|
||||
image: "mariadb:{{ services.writefreely.mariadb_version }}"
|
||||
image: mariadb:{{ services.writefreely.mariadb_version }}
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- "./db:/var/lib/mysql"
|
||||
environment:
|
||||
- MYSQL_DATABASE=writefreely
|
||||
- MYSQL_ROOT_PASSWORD={{ writefreely_secrets.db_password }}
|
||||
MYSQL_DATABASE: writefreely
|
||||
MYSQL_ROOT_PASSWORD: {{ writefreely_secrets.db_password }}
|
||||
|
||||
app:
|
||||
image: "writeas/writefreely:{{ services.writefreely.version }}"
|
||||
image: ghcr.io/writefreely/writefreely:{{ services.writefreely.version }}
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- default
|
||||
- external_services
|
||||
volumes:
|
||||
- "./keys:/go/keys"
|
||||
- "./config.ini:/go/config.ini"
|
||||
environment:
|
||||
VIRTUAL_HOST: "{{ services.writefreely.domain }}"
|
||||
|
|
Loading…
Reference in a new issue