computer-playbook/roles/docker-openproject
Kevin Veen-Birkenbach 015794458e Removed obsolete version attribute 2024-04-04 15:54:21 +02:00
..
files Solved open project plugin bug 2024-01-18 22:09:45 +01:00
handlers Implemented gitlab plugin to openproject 2024-01-14 14:10:36 +01:00
tasks Restructured code and matrix rol 2024-01-19 15:12:18 +01:00
templates Removed obsolete version attribute 2024-04-04 15:54:21 +02:00
vars Solved refaktoring bug 2024-01-20 15:25:14 +01:00
README.md implemented draft for openproject 2023-12-22 15:49:55 +01:00

README.md

README.md for Docker OpenProject Role

Overview

This role is designed to deploy the OpenProject application using Docker. It includes tasks for setting up the environment, pulling the Docker repository, and configuring a reverse proxy with Nginx.

Requirements

  • Ansible
  • Docker
  • Docker Compose
  • Access to the GitHub repository "opf/openproject-deploy"

Role Variables

The role uses several variables, defined in vars/main.yml:

  • repository_directory: The directory for the OpenProject repository.
  • docker_compose_instance_directory: Directory for Docker Compose instances.

Handlers

Defined in handlers/main.yml, the handler recreate openproject is used for recreating the OpenProject instance with specific environment settings.

Tasks

Outlined in tasks/main.yml, the role includes tasks for:

  • Including Nginx Docker proxy domain tasks.
  • Creating the repository directory.
  • Pulling the OpenProject Docker repository.
  • Warning if the repository is not reachable.
  • Copying the .env file from a template.

Templates

env.j2 in templates/ folder is a Jinja2 template for the .env file, setting up environment variables for the OpenProject container.

Dependencies

This role depends on nginx-docker-reverse-proxy, as defined in meta/main.yml.

Usage

To use this role, include it in your Ansible playbook and set the necessary variables, especially those required in the .env file template.

Notes

Ensure that Docker and Docker Compose are installed and configured correctly on the target machine. Also, ensure that the necessary ports are open and accessible.