Update scipio app config to use redis cache
This commit is contained in:
parent
d0ae93751a
commit
ac09d79fa9
@ -3,13 +3,16 @@ version: "{{ omni_compose_version | string }}"
|
|||||||
|
|
||||||
|
|
||||||
x-global-env: &globalenv
|
x-global-env: &globalenv
|
||||||
SCIPIO_PRINCIPAL: "30000"
|
|
||||||
SCIPIO_DB_BACKEND: MARIA
|
SCIPIO_DB_BACKEND: MARIA
|
||||||
SCIPIO_DB_HOST: database
|
SCIPIO_DB_HOST: database
|
||||||
SCIPIO_DB_PORT: "3306"
|
SCIPIO_DB_PORT: "3306"
|
||||||
SCIPIO_DB_USERNAME: root
|
SCIPIO_DB_USERNAME: root
|
||||||
SCIPIO_DB_PASSWORD: {{ omni_compose_app_secrets.scipio.database_password }}
|
SCIPIO_DB_PASSWORD: {{ omni_compose_app_secrets.scipio.database_password }}
|
||||||
SCIPIO_DB_SCHEMA: scipio
|
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_FEED: https://blog.tipranks.com/feed/
|
||||||
SCIPIO_PHANTOM_HANDLER: tipranks
|
SCIPIO_PHANTOM_HANDLER: tipranks
|
||||||
SCIPIO_EXECUTOR_HANDLER: hologram
|
SCIPIO_EXECUTOR_HANDLER: hologram
|
||||||
@ -54,21 +57,11 @@ services:
|
|||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
|
||||||
dashboard:
|
cache:
|
||||||
image: adminer:{{ omni_compose_apps.scipio.versions.dashboard | default(omni_compose_apps.scipio.versions.default) }}
|
image: redis:{{ omni_compose_apps.scipio.versions.cache | default(omni_compose_apps.scipio.versions.default) }}
|
||||||
hostname: scipio-dashboard
|
hostname: scipio-cache
|
||||||
depends_on:
|
|
||||||
- database
|
|
||||||
networks:
|
networks:
|
||||||
- scipio
|
- 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:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
|
||||||
@ -77,12 +70,14 @@ services:
|
|||||||
hostname: scipio-phantom
|
hostname: scipio-phantom
|
||||||
depends_on:
|
depends_on:
|
||||||
- database
|
- database
|
||||||
|
- cache
|
||||||
networks:
|
networks:
|
||||||
- scipio
|
- scipio
|
||||||
environment:
|
environment:
|
||||||
<<: *globalenv
|
<<: *globalenv
|
||||||
SCIPIO_INTERVAL: "10"
|
SCIPIO_INTERVAL: "10"
|
||||||
command: --phantom -vvv
|
SCIPIO_LOG_SOURCE: phantom
|
||||||
|
command: --phantom
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
|
||||||
@ -91,13 +86,15 @@ services:
|
|||||||
hostname: scipio-executor
|
hostname: scipio-executor
|
||||||
depends_on:
|
depends_on:
|
||||||
- database
|
- database
|
||||||
|
- cache
|
||||||
- phantom
|
- phantom
|
||||||
networks:
|
networks:
|
||||||
- scipio
|
- scipio
|
||||||
environment:
|
environment:
|
||||||
<<: *globalenv
|
<<: *globalenv
|
||||||
SCIPIO_INTERVAL: "5"
|
SCIPIO_INTERVAL: "5"
|
||||||
command: --executor -vvv
|
SCIPIO_LOG_SOURCE: executor
|
||||||
|
command: --executor
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
|
||||||
@ -106,12 +103,14 @@ services:
|
|||||||
hostname: scipio-falcon
|
hostname: scipio-falcon
|
||||||
depends_on:
|
depends_on:
|
||||||
- database
|
- database
|
||||||
|
- cache
|
||||||
- executor
|
- executor
|
||||||
networks:
|
networks:
|
||||||
- scipio
|
- scipio
|
||||||
environment:
|
environment:
|
||||||
<<: *globalenv
|
<<: *globalenv
|
||||||
SCIPIO_INTERVAL: "60"
|
SCIPIO_INTERVAL: "60"
|
||||||
command: --falcon -vvv
|
SCIPIO_LOG_SOURCE: falcon
|
||||||
|
command: --falcon
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
@ -108,4 +108,5 @@ omni_compose_apps:
|
|||||||
versions:
|
versions:
|
||||||
default: 0.6.0
|
default: 0.6.0
|
||||||
database: "10"
|
database: "10"
|
||||||
|
cache: "6.2"
|
||||||
dashboard: latest
|
dashboard: latest
|
||||||
|
Reference in New Issue
Block a user