This guide provides a full Ansible playbook to deploy I Doit with Docker Compose on Debian 10+, Ubuntu LTS, and RHEL 9+ compatible hosts.
- name: Deploy I Doit
hosts: i-doit
become: true
vars:
app_root: /opt/i-doit
app_port: 8080
tasks:
- name: Install Docker on Debian/Ubuntu
apt:
name:
- docker.io
- docker-compose-plugin
state: present
update_cache: true
when: ansible_os_family == "Debian"
- name: Install Docker on RHEL family
dnf:
name:
- docker
- docker-compose-plugin
state: present
when: ansible_os_family == "RedHat"
- name: Enable and start Docker
service:
name: docker
state: started
enabled: true
- name: Create application directory
file:
path: "{{ app_root }}"
state: directory
mode: "0755"
- name: Write Docker Compose file
copy:
dest: "{{ app_root }}/docker-compose.yml"
mode: "0644"
content: |
services:
app:
# Note: No official i-doit Docker image exists. This uses a community-maintained image.
image: paprikant/i-doit:open-1.10
restart: unless-stopped
ports:
- "{{ app_port }}:80"
environment:
- MARIADB_SUPERUSER_PASSWORD=change-me
- MARIADB_IDOIT_USERNAME=idoit
- MARIADB_IDOIT_PASSWORD=change-me
- IDOIT_TENANT=your-company
- IDOIT_ADMINCENTER_PASSWORD=change-me
- name: Start application stack
command: docker compose up -d
args:
chdir: "{{ app_root }}"
paprikant/i-doit image is used here. For production, consider the official VM appliance or manual installation.admin:admin (change immediately!)We develop tailored automation solutions for:
Let’s discuss your requirements: office@linux-server-admin.com | Contact