2021-01-15 05:02:42 +00:00
|
|
|
---
|
|
|
|
version: "{{ omni_compose_version | string }}"
|
|
|
|
|
|
|
|
|
2021-02-05 05:26:09 +00:00
|
|
|
x-global-env: &globalenv
|
2021-02-27 23:04:49 +00:00
|
|
|
SCIPIO_SECRET_KEY: {{ omni_compose_app_secrets.scipio.application_key }}
|
2021-02-05 05:26:09 +00:00
|
|
|
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
|
2021-02-25 02:27:19 +00:00
|
|
|
SCIPIO_LOG_LEVEL: debug
|
|
|
|
SCIPIO_LOG_RETENTION: "864000"
|
|
|
|
SCIPIO_LOG_BACKEND: redis
|
2021-02-27 23:04:49 +00:00
|
|
|
SCIPIO_LOG_REDIS_SCHEMA: "0"
|
2021-02-25 02:27:19 +00:00
|
|
|
SCIPIO_LOG_REDIS_HOSTNAME: cache
|
2021-02-05 05:57:56 +00:00
|
|
|
SCIPIO_PHANTOM_FEED: https://blog.tipranks.com/feed/
|
|
|
|
SCIPIO_PHANTOM_HANDLER: tipranks
|
|
|
|
SCIPIO_EXECUTOR_HANDLER: hologram
|
|
|
|
SCIPIO_THRESHOLD_MIN_PROJECTED_RETURN_TO_BUY: "75"
|
2021-02-05 05:26:09 +00:00
|
|
|
|
|
|
|
|
2021-01-15 05:02:42 +00:00
|
|
|
networks:
|
|
|
|
scipio:
|
|
|
|
name: scipio
|
|
|
|
driver: overlay
|
|
|
|
ipam:
|
|
|
|
driver: default
|
|
|
|
config:
|
|
|
|
- subnet: {{ omni_compose_apps.scipio.networks.main }}
|
|
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
scipio:
|
|
|
|
name: datastore{{ omni_compose_apps.scipio.datastore }}
|
|
|
|
driver: glusterfs
|
|
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
database:
|
2021-01-15 05:46:07 +00:00
|
|
|
image: mariadb:{{ omni_compose_apps.scipio.versions.database | default(omni_compose_apps.scipio.versions.default) }}
|
2021-01-15 05:02:42 +00:00
|
|
|
hostname: scipio-database
|
|
|
|
networks:
|
|
|
|
- scipio
|
2021-02-05 04:07:31 +00:00
|
|
|
ports:
|
|
|
|
- published: {{ omni_compose_apps.scipio.published.ports.3306 }}
|
|
|
|
target: 3306
|
|
|
|
protocol: tcp
|
|
|
|
mode: ingress
|
2021-01-15 05:02:42 +00:00
|
|
|
volumes:
|
|
|
|
- type: volume
|
|
|
|
source: scipio
|
|
|
|
target: /var/lib/mysql
|
|
|
|
read_only: false
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: {{ omni_compose_app_secrets.scipio.database_password }}
|
|
|
|
MYSQL_DATABASE: scipio
|
|
|
|
deploy:
|
|
|
|
replicas: 1
|
|
|
|
|
2021-02-25 02:27:19 +00:00
|
|
|
cache:
|
|
|
|
image: redis:{{ omni_compose_apps.scipio.versions.cache | default(omni_compose_apps.scipio.versions.default) }}
|
|
|
|
hostname: scipio-cache
|
2021-01-15 05:59:09 +00:00
|
|
|
networks:
|
|
|
|
- scipio
|
|
|
|
deploy:
|
|
|
|
replicas: 1
|
|
|
|
|
2021-02-27 22:18:53 +00:00
|
|
|
api:
|
|
|
|
image: scipio:{{ omni_compose_apps.scipio.versions.api | default(omni_compose_apps.scipio.versions.default) }}
|
|
|
|
hostname: scipio-api
|
|
|
|
depends_on:
|
|
|
|
- database
|
|
|
|
- cache
|
|
|
|
networks:
|
|
|
|
- scipio
|
2021-02-27 22:28:49 +00:00
|
|
|
ports:
|
|
|
|
- published: {{ omni_compose_apps.scipio.published.ports.8080 }}
|
|
|
|
target: 8080
|
|
|
|
protocol: tcp
|
|
|
|
mode: ingress
|
2021-02-27 22:18:53 +00:00
|
|
|
environment:
|
|
|
|
<<: *globalenv
|
|
|
|
SCIPIO_LOG_SOURCE: api
|
|
|
|
command: --api
|
|
|
|
deploy:
|
|
|
|
replicas: 1
|
|
|
|
|
2021-01-15 05:02:42 +00:00
|
|
|
phantom:
|
|
|
|
image: scipio:{{ omni_compose_apps.scipio.versions.phantom | default(omni_compose_apps.scipio.versions.default) }}
|
|
|
|
hostname: scipio-phantom
|
2021-01-15 05:59:09 +00:00
|
|
|
depends_on:
|
|
|
|
- database
|
2021-02-25 02:27:19 +00:00
|
|
|
- cache
|
2021-01-15 05:02:42 +00:00
|
|
|
networks:
|
|
|
|
- scipio
|
|
|
|
environment:
|
2021-02-05 05:26:09 +00:00
|
|
|
<<: *globalenv
|
|
|
|
SCIPIO_INTERVAL: "10"
|
2021-02-25 02:27:19 +00:00
|
|
|
SCIPIO_LOG_SOURCE: phantom
|
|
|
|
command: --phantom
|
2021-02-05 05:26:09 +00:00
|
|
|
deploy:
|
|
|
|
replicas: 1
|
|
|
|
|
|
|
|
executor:
|
|
|
|
image: scipio:{{ omni_compose_apps.scipio.versions.executor | default(omni_compose_apps.scipio.versions.default) }}
|
|
|
|
hostname: scipio-executor
|
|
|
|
depends_on:
|
|
|
|
- database
|
2021-02-25 02:27:19 +00:00
|
|
|
- cache
|
2021-02-05 05:26:09 +00:00
|
|
|
- phantom
|
|
|
|
networks:
|
|
|
|
- scipio
|
|
|
|
environment:
|
|
|
|
<<: *globalenv
|
|
|
|
SCIPIO_INTERVAL: "5"
|
2021-02-25 02:27:19 +00:00
|
|
|
SCIPIO_LOG_SOURCE: executor
|
|
|
|
command: --executor
|
2021-02-05 05:26:09 +00:00
|
|
|
deploy:
|
|
|
|
replicas: 1
|
|
|
|
|
|
|
|
falcon:
|
|
|
|
image: scipio:{{ omni_compose_apps.scipio.versions.falcon | default(omni_compose_apps.scipio.versions.default) }}
|
|
|
|
hostname: scipio-falcon
|
|
|
|
depends_on:
|
|
|
|
- database
|
2021-02-25 02:27:19 +00:00
|
|
|
- cache
|
2021-02-05 05:26:09 +00:00
|
|
|
- executor
|
|
|
|
networks:
|
|
|
|
- scipio
|
|
|
|
environment:
|
|
|
|
<<: *globalenv
|
|
|
|
SCIPIO_INTERVAL: "60"
|
2021-02-25 02:27:19 +00:00
|
|
|
SCIPIO_LOG_SOURCE: falcon
|
|
|
|
command: --falcon
|
2021-01-15 05:02:42 +00:00
|
|
|
deploy:
|
|
|
|
replicas: 1
|