created default parameters for docker versions in all

This commit is contained in:
Kevin Veen-Birkenbach 2023-12-13 15:16:02 +01:00
parent 1e1b569d2f
commit 4766da2ea7
7 changed files with 29 additions and 20 deletions

View File

@ -61,6 +61,12 @@ domain_roulette: "roulette.{{top_domain}}"
domain_attendize: "tickets.{{top_domain}}" domain_attendize: "tickets.{{top_domain}}"
domain_yourls: "s.{{top_domain}}" domain_yourls: "s.{{top_domain}}"
# Software versions
version_nextcloud: "latest" # Nextcloud can't skipp major version updates.
version_mailu: "2.0"
version_akaunting: "latest"
version_akaunting: "latest"
version_mastodon: "latest"
# Routings # Routings
redirect_domain_mappings: redirect_domain_mappings:
@ -79,4 +85,7 @@ redirect_domain_mappings:
nginx_configuration_directory: "/etc/nginx/conf.d/" nginx_configuration_directory: "/etc/nginx/conf.d/"
nginx_servers_directory: "{{nginx_configuration_directory}}servers/" nginx_servers_directory: "{{nginx_configuration_directory}}servers/"
nginx_maps_directory: "{{nginx_configuration_directory}}maps/" nginx_maps_directory: "{{nginx_configuration_directory}}maps/"
nginx_upstreams_directory: "{{nginx_configuration_directory}}upstreams/" nginx_upstreams_directory: "{{nginx_configuration_directory}}upstreams/"
# Role specific configuration
pixelfed_app_name: "Pictures"

View File

@ -82,7 +82,7 @@ Detailed steps for backing up your Akaunting instance, including setting manual
Variables are crucial in configuring your Akaunting setup. Ensure you set the following variables correctly in your environment: Variables are crucial in configuring your Akaunting setup. Ensure you set the following variables correctly in your environment:
- `docker_compose_instance_directory`: Set this variable to the path where your Docker Compose files for Akaunting are located. - `docker_compose_instance_directory`: Set this variable to the path where your Docker Compose files for Akaunting are located.
- `akaunting_db_password`, `akaunting_version`, `akaunting_company_name`, `akaunting_company_email`, `akaunting_setup_admin_email`, and `akaunting_setup_admin_password`: These should be set in your `.env` files as per your requirements. - `akaunting_db_password`, `version_akaunting`, `akaunting_company_name`, `akaunting_company_email`, `akaunting_setup_admin_email`, and `akaunting_setup_admin_password`: These should be set in your `.env` files as per your requirements.
### Additional Configuration ### Additional Configuration
- **SSL Certificate**: The guide includes steps to receive a certificate for your domain. - **SSL Certificate**: The guide includes steps to receive a certificate for your domain.

View File

@ -30,7 +30,7 @@
when: git_result.failed when: git_result.failed
- name: set akaunting version - name: set akaunting version
ansible.builtin.shell: find . -type f -exec sed -i 's/akaunting:latest/akaunting:{{akaunting_version}}/' {} + && find . -type f -exec sed -i 's/version=latest/version={{akaunting_version}}/' {} + ansible.builtin.shell: find . -type f -exec sed -i 's/akaunting:latest/akaunting:{{version_akaunting}}/' {} + && find . -type f -exec sed -i 's/version=latest/version={{version_akaunting}}/' {} +
become: true become: true
args: args:
chdir: "{{docker_compose_instance_directory}}" chdir: "{{docker_compose_instance_directory}}"

View File

@ -50,7 +50,7 @@ services:
# Core services # Core services
resolver: resolver:
image: ghcr.io/mailu/unbound:{{mailu_version}} image: ghcr.io/mailu/unbound:{{version_mailu}}
env_file: mailu.env env_file: mailu.env
restart: always restart: always
networks: networks:
@ -60,7 +60,7 @@ services:
driver: journald driver: journald
front: front:
image: ghcr.io/mailu/nginx:{{mailu_version}} image: ghcr.io/mailu/nginx:{{version_mailu}}
restart: always restart: always
env_file: mailu.env env_file: mailu.env
logging: logging:
@ -90,7 +90,7 @@ services:
- 192.168.203.254 - 192.168.203.254
admin: admin:
image: ghcr.io/mailu/admin:{{mailu_version}} image: ghcr.io/mailu/admin:{{version_mailu}}
restart: always restart: always
env_file: mailu.env env_file: mailu.env
volumes: volumes:
@ -106,7 +106,7 @@ services:
dns: dns:
- 192.168.203.254 - 192.168.203.254
imap: imap:
image: ghcr.io/mailu/dovecot:{{mailu_version}} image: ghcr.io/mailu/dovecot:{{version_mailu}}
restart: always restart: always
env_file: mailu.env env_file: mailu.env
volumes: volumes:
@ -121,7 +121,7 @@ services:
driver: journald driver: journald
smtp: smtp:
image: ghcr.io/mailu/postfix:{{mailu_version}} image: ghcr.io/mailu/postfix:{{version_mailu}}
restart: always restart: always
env_file: mailu.env env_file: mailu.env
volumes: volumes:
@ -136,7 +136,7 @@ services:
driver: journald driver: journald
oletools: oletools:
image: ghcr.io/mailu/oletools:{{mailu_version}} image: ghcr.io/mailu/oletools:{{version_mailu}}
hostname: oletools hostname: oletools
restart: always restart: always
depends_on: depends_on:
@ -147,7 +147,7 @@ services:
- noinet - noinet
antispam: antispam:
image: ghcr.io/mailu/rspamd:{{mailu_version}} image: ghcr.io/mailu/rspamd:{{version_mailu}}
restart: always restart: always
env_file: mailu.env env_file: mailu.env
volumes: volumes:
@ -169,7 +169,7 @@ services:
# Optional services # Optional services
antivirus: antivirus:
image: ghcr.io/mailu/clamav:{{mailu_version}} image: ghcr.io/mailu/clamav:{{version_mailu}}
restart: always restart: always
env_file: mailu.env env_file: mailu.env
volumes: volumes:
@ -182,7 +182,7 @@ services:
driver: journald driver: journald
webdav: webdav:
image: ghcr.io/mailu/radicale:{{mailu_version}} image: ghcr.io/mailu/radicale:{{version_mailu}}
restart: always restart: always
env_file: mailu.env env_file: mailu.env
volumes: volumes:
@ -197,7 +197,7 @@ services:
- 192.168.203.254 - 192.168.203.254
fetchmail: fetchmail:
image: ghcr.io/mailu/fetchmail:{{mailu_version}} image: ghcr.io/mailu/fetchmail:{{version_mailu}}
volumes: volumes:
- "admin_data:/data" - "admin_data:/data"
restart: always restart: always
@ -213,7 +213,7 @@ services:
- 192.168.203.254 - 192.168.203.254
webmail: webmail:
image: ghcr.io/mailu/webmail:{{mailu_version}} image: ghcr.io/mailu/webmail:{{version_mailu}}
restart: always restart: always
env_file: mailu.env env_file: mailu.env
volumes: volumes:

View File

@ -26,7 +26,7 @@ services:
logging: logging:
driver: journald driver: journald
web: web:
image: tootsuite/mastodon:{{mastodon_version}} image: tootsuite/mastodon:{{version_mastodon}}
restart: always restart: always
env_file: .env.production env_file: .env.production
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000" command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
@ -46,7 +46,7 @@ services:
logging: logging:
driver: journald driver: journald
streaming: streaming:
image: tootsuite/mastodon:{{mastodon_version}} image: tootsuite/mastodon:{{version_mastodon}}
restart: always restart: always
env_file: .env.production env_file: .env.production
command: node ./streaming command: node ./streaming
@ -64,7 +64,7 @@ services:
logging: logging:
driver: journald driver: journald
sidekiq: sidekiq:
image: tootsuite/mastodon:{{mastodon_version}} image: tootsuite/mastodon:{{version_mastodon}}
restart: always restart: always
env_file: .env.production env_file: .env.production
command: bundle exec sidekiq command: bundle exec sidekiq

View File

@ -21,7 +21,7 @@ To update the nextcloud container execute the following commands on the server:
docker-compose down docker-compose down
``` ```
Afterwards update the ***nextcloud_version*** variable to the next version and run the this repository with this ansible role. Afterwards update the ***version_nextcloud*** variable to the next version and run the this repository with this ansible role.
It is only possible to update from one to the next major version at a time It is only possible to update from one to the next major version at a time

View File

@ -2,7 +2,7 @@ version: '3'
services: services:
application: application:
image: "nextcloud:{{nextcloud_version}}-fpm-alpine" image: "nextcloud:{{version_nextcloud}}-fpm-alpine"
restart: always restart: always
logging: logging:
driver: journald driver: journald
@ -60,7 +60,7 @@ services:
timeout: 3s timeout: 3s
retries: 30 retries: 30
cron: cron:
image: "nextcloud:{{nextcloud_version}}-fpm-alpine" image: "nextcloud:{{version_nextcloud}}-fpm-alpine"
restart: always restart: always
logging: logging:
driver: journald driver: journald