From 7ce875d4844bdb188b871b43ca85efb34a0150b8 Mon Sep 17 00:00:00 2001 From: salverius-tech Date: Sat, 26 Aug 2023 08:09:31 -0700 Subject: [PATCH] Added itflow --- services-available/itflow.yml | 63 +++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 services-available/itflow.yml diff --git a/services-available/itflow.yml b/services-available/itflow.yml new file mode 100644 index 00000000..f65a09ce --- /dev/null +++ b/services-available/itflow.yml @@ -0,0 +1,63 @@ +version: '3' + +networks: + default: + name: traefik + +# https://itflow.org/ + +services: + itflow-db: + hostname: itflow-db + container_name: itflow-db + image: mariadb:10.6.11 + restart: always + networks: + - itflow-db + environment: + - MARIADB_RANDOM_ROOT_PASSWORD=true + - MARIADB_DATABASE=${ITFLOW_DB_NAME:-itflow} + - MARIADB_USER=${ITFLOW_DB_USER:-itflow} + - MARIADB_PASSWORD=${ITFLOW_DB_PASS:-itflowpass} + volumes: + - itflow-db:/var/lib/mysql/ + + itflow: + image: lued/itflow:${ITFLOW_DOCKER_TAG:-latest} + container_name: ${ITFLOW_CONTAINER_NAME:-itflow} + hostname: ${ITFLOW_HOSTNAME:-itflow} + restart: ${ITFLOW_RESTART:-unless-stopped} + depends_on: + - itflow-db + volumes: + - ./etc/itflow:/var/www/html + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + environment: + - PUID=${PUID:-1000} + - PGID=${PGID:-1000} + - TZ=${TZ} + - ITFLOW_NAME=ITFlow + - ITFLOW_URL=${ITFLOW_CONTAINER_NAME:-itflow}.${HOST_DOMAIN} + - ITFLOW_PORT=8080 + - ITFLOW_REPO=github.com/itflow-org/itflow + - ITFLOW_REPO_BRANCH=master + - ITFLOW_LOG_LEVEL=info + - ITFLOW_DB_HOST=itflow-db + - ITFLOW_DB_PASS=${ITFLOW_DB_PASS:-itflow} + labels: + - joyride.host.name=${ITFLOW_CONTAINER_NAME:-itflow}.${HOST_DOMAIN} + - traefik.enable=true + - traefik.http.routers.itflow.entrypoints=websecure + - traefik.http.routers.itflow.rule=Host(`${ITFLOW_CONTAINER_NAME:-itflow}.${HOST_DOMAIN}`) + #- traefik.http.services.itflow.loadbalancer.server.scheme=https # enable if the service wants to connect over https + - traefik.http.services.itflow.loadbalancer.server.port=8080 + - com.centurylinklabs.watchtower.enable=true + - autoheal=true + + # Flame dashboard labels + + - flame.type=application # "app" works too + - flame.name=${ITFLOW_FLAME_NAME:-itflow} + - flame.url=https://${ITFLOW_CONTAINER_NAME:-itflow}.${HOST_DOMAIN} + - flame.icon=${ITFLOW_FLAME_ICON:-docker} # optional, default is "docker" \ No newline at end of file