diff --git a/resources/docker-compose/scipio.yaml.j2 b/resources/docker-compose/scipio.yaml.j2 index 15f116f..3dd59b6 100644 --- a/resources/docker-compose/scipio.yaml.j2 +++ b/resources/docker-compose/scipio.yaml.j2 @@ -3,13 +3,16 @@ version: "{{ omni_compose_version | string }}" x-global-env: &globalenv - SCIPIO_PRINCIPAL: "30000" SCIPIO_DB_BACKEND: MARIA SCIPIO_DB_HOST: database SCIPIO_DB_PORT: "3306" SCIPIO_DB_USERNAME: root SCIPIO_DB_PASSWORD: {{ omni_compose_app_secrets.scipio.database_password }} SCIPIO_DB_SCHEMA: scipio + SCIPIO_LOG_LEVEL: debug + SCIPIO_LOG_RETENTION: "864000" + SCIPIO_LOG_BACKEND: redis + SCIPIO_LOG_REDIS_HOSTNAME: cache SCIPIO_PHANTOM_FEED: https://blog.tipranks.com/feed/ SCIPIO_PHANTOM_HANDLER: tipranks SCIPIO_EXECUTOR_HANDLER: hologram @@ -54,21 +57,11 @@ services: deploy: replicas: 1 - dashboard: - image: adminer:{{ omni_compose_apps.scipio.versions.dashboard | default(omni_compose_apps.scipio.versions.default) }} - hostname: scipio-dashboard - depends_on: - - database + cache: + image: redis:{{ omni_compose_apps.scipio.versions.cache | default(omni_compose_apps.scipio.versions.default) }} + hostname: scipio-cache networks: - scipio - ports: - - published: {{ omni_compose_apps.scipio.published.ports.8080 }} - target: 8080 - protocol: tcp - mode: ingress - environment: - ADMINER_DESIGN: pepa-linha - ADMINER_DEFAULT_SERVER: database deploy: replicas: 1 @@ -77,12 +70,14 @@ services: hostname: scipio-phantom depends_on: - database + - cache networks: - scipio environment: <<: *globalenv SCIPIO_INTERVAL: "10" - command: --phantom -vvv + SCIPIO_LOG_SOURCE: phantom + command: --phantom deploy: replicas: 1 @@ -91,13 +86,15 @@ services: hostname: scipio-executor depends_on: - database + - cache - phantom networks: - scipio environment: <<: *globalenv SCIPIO_INTERVAL: "5" - command: --executor -vvv + SCIPIO_LOG_SOURCE: executor + command: --executor deploy: replicas: 1 @@ -106,12 +103,14 @@ services: hostname: scipio-falcon depends_on: - database + - cache - executor networks: - scipio environment: <<: *globalenv SCIPIO_INTERVAL: "60" - command: --falcon -vvv + SCIPIO_LOG_SOURCE: falcon + command: --falcon deploy: replicas: 1 diff --git a/vars/applications.yaml b/vars/applications.yaml index a6e0271..66745f0 100644 --- a/vars/applications.yaml +++ b/vars/applications.yaml @@ -108,4 +108,5 @@ omni_compose_apps: versions: default: 0.6.0 database: "10" + cache: "6.2" dashboard: latest