mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implemented vars, tasks and templates for central database setup until mastodon role
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
# These could be changed
|
||||
MYSQL_DATABASE={{database_databasename}}
|
||||
MYSQL_USER={{database_username}}
|
||||
|
||||
# This should definitely be changed to something long and random
|
||||
MYSQL_PASSWORD={{database_password}}
|
||||
|
||||
# You should probably leave this
|
||||
MYSQL_ROOT_PASSWORD={{database_password}}
|
@@ -1,6 +1,9 @@
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
|
||||
{% include 'templates/docker-{{ database_type }}-service.yml.j2' %}
|
||||
|
||||
application:
|
||||
image: docker.io/akaunting/akaunting:{{version_akaunting}}
|
||||
build:
|
||||
@@ -14,15 +17,11 @@ services:
|
||||
- env/run.env
|
||||
environment:
|
||||
- AKAUNTING_SETUP
|
||||
{% if not enable_central_database %}
|
||||
depends_on:
|
||||
- database
|
||||
|
||||
{% include 'templates/docker-mariadb-service.yml.j2' %}
|
||||
{% endif %}
|
||||
{% include 'templates/docker-networks-for-container.yml.j2' %}
|
||||
{% include 'templates/docker-depends-on-central-database.yml.j2' %}
|
||||
|
||||
volumes:
|
||||
data:
|
||||
{% if not enable_central_database %}
|
||||
database:
|
||||
{% endif %}
|
||||
{% include 'templates/docker-database-volume.yml.j2' %}
|
||||
|
||||
{% include 'templates/docker-networks-for-role.yml.j2' %}
|
@@ -3,12 +3,12 @@ APP_URL=https://{{domain}}
|
||||
LOCALE=en-US
|
||||
|
||||
# Don't change this unless you rename your database container or use rootless podman, in case of using rootless podman you should set it to 127.0.0.1 (NOT localhost)
|
||||
DB_HOST=akaunting-db
|
||||
DB_HOST={{database_host}}
|
||||
|
||||
# Change these to match env/db.env
|
||||
DB_DATABASE=akaunting
|
||||
DB_USERNAME=admin
|
||||
DB_PASSWORD={{akaunting_database_password}}
|
||||
DB_DATABASE={{database_databasename}}
|
||||
DB_USERNAME={{database_username}}
|
||||
DB_PASSWORD={{database_password}}
|
||||
|
||||
# You should change this to a random string of three numbers or letters followed by an underscore
|
||||
DB_PREFIX=asd_
|
||||
|
Reference in New Issue
Block a user