2024-03-29 20:54:14 +00:00
|
|
|
{# code: language=ansible-jinja #}
|
|
|
|
# THIS FILE IS MANAGED BY ANSIBLE
|
|
|
|
|
2023-12-07 19:39:04 +00:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
2024-02-09 21:00:02 +00:00
|
|
|
image: mariadb:{{ services.writefreely.mariadb_version }}
|
2023-12-07 19:39:04 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- "./db:/var/lib/mysql"
|
|
|
|
environment:
|
2024-02-09 21:00:02 +00:00
|
|
|
MYSQL_DATABASE: writefreely
|
|
|
|
MYSQL_ROOT_PASSWORD: {{ writefreely_secrets.db_password }}
|
2023-12-07 19:39:04 +00:00
|
|
|
|
|
|
|
app:
|
2024-02-09 21:00:02 +00:00
|
|
|
image: ghcr.io/writefreely/writefreely:{{ services.writefreely.version }}
|
2023-12-07 19:39:04 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- external_services
|
|
|
|
volumes:
|
2024-02-09 21:00:02 +00:00
|
|
|
- "./keys:/go/keys"
|
2023-12-07 19:39:04 +00:00
|
|
|
- "./config.ini:/go/config.ini"
|
|
|
|
environment:
|
|
|
|
VIRTUAL_HOST: "{{ services.writefreely.domain }}"
|
|
|
|
LETSENCRYPT_HOST: "{{ services.writefreely.domain }}"
|
|
|
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
networks:
|
|
|
|
external_services:
|
|
|
|
external: true
|