33 lines
820 B
Django/Jinja
33 lines
820 B
Django/Jinja
# vim: ft=yaml.docker-compose
|
|
version: "3.8"
|
|
|
|
services:
|
|
db:
|
|
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 }}
|
|
|
|
app:
|
|
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 }}"
|
|
LETSENCRYPT_HOST: "{{ services.writefreely.domain }}"
|
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
|
depends_on:
|
|
- db
|
|
|
|
networks:
|
|
external_services:
|
|
external: true
|