Skip to content

janul/jagger-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

jagger-docker in docker swarm

services

jagger web

  1. image on docker hub: janul/jagger
  2. custom configuration:
  • to set/override some configs you can mount volume with your configuration to /opt/Jagger/application/config/config_rr_override.php
  • to enable and set email you need to mount you config to /opt/Jagger/application/config/email.php
  1. support environment variables and their default values:
  • JAGGER_DOCKER = 1 do not override this variable

  • JAGGER_WEB = 1 tells if container should run web

  • BEHIND_PROXY = 0

  • HTTPS_DISABLED = 0 if set to 1 then ssl module is unloaded - makes sense when BEHIND_PROXY is set to 1

  • JAGGER_MAILER = 0 run monitor to send mail from the queue.

  • JAGGER_CRON = 0 run tasks scheduler

  • JAGGER_MSIGNER_WRK = 0 run rabbitmq consumer for signing metadata

  • JAGGER_SETUP

  • JAGGER_SYNC_PASS = ''

  • JAGGER_LOGS

  • MEMCACHE_HOST Required: hostname of memcache server

  • DB_HOST Required: hostname of mysql server

  • DB_PASSWORD: Required: db password

  • DB_USER: Required: db user

  • DB_CHARSET = latin1

  • VIRTUAL_HOST Required

  • JAGGER_URI = /rr3 Alias with webroot of application: Do not add / at the end

  • RABBITMQ_VHOST

  • RABBITMQ_HOST

  • RABBITMQ_USER

  • RABBITMQ_PASS

4.then https://github.com/Edugate/Jagger/blob/1.x-stable/application/config/dockerized.php config is loaded

memcache

Required

rabbitmq

Optional

db

you can either use exernal db or create service in the stack

proxy

Tested successfuly with https://github.com/jwilder/nginx-proxy and https://traefik.io/ however nginx-proxy cannot (at least for now) discover containers on remote docker nodes.

docker stack demo

  1. init swarm

    docker swarm init
  2. add label to node where db service will sit:

    docker node update --label-add jaggerdb=true NODE_ID
  3. modify compose file: docker-compose-sample.yml by updating VIRTUAL_HOST value If you run it first time (empty db) you need to enable env variable in compose file: JAGGER_SETUP : true . It will activate URI /rr3/setup

  4. create secrets (https://docs.docker.com/engine/swarm/secrets/):

    • metasigner-cert
    • metasigner-key
    • metasigner-pass
    • https_ca
    • https_crt
    • https_key
  5. run:

     # docker stack deploy -c docker-compose-sample.yml jaggerdemo
  6. after the first deployment db is empty so you need to populate tables...

    # docker container ls

    find container id of jaggerdemo_jagger....

    # docker exec -t -i CONTAINER_ID /bin/bash

    inside docker container run

    # cd /opt/Jagger/application 
    #./doctrine orm:schema-tool:create

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published