Update scipio app config to use redis cache

This commit is contained in:
Ethan Paul 2021-02-24 21:27:19 -05:00
parent d0ae93751a
commit ac09d79fa9
No known key found for this signature in database
GPG Key ID: D0E2CBF1245E92BF
2 changed files with 17 additions and 17 deletions

View File

@ -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

View File

@ -108,4 +108,5 @@ omni_compose_apps:
versions:
default: 0.6.0
database: "10"
cache: "6.2"
dashboard: latest