From b0612af979aa72243e6afff69d61590ff5fca9d8 Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Fri, 15 Jan 2021 00:02:42 -0500 Subject: [PATCH] Add docker-compose file for scipio project --- resources/docker-compose/scipio.yaml.j2 | 55 +++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 resources/docker-compose/scipio.yaml.j2 diff --git a/resources/docker-compose/scipio.yaml.j2 b/resources/docker-compose/scipio.yaml.j2 new file mode 100644 index 0000000..375a077 --- /dev/null +++ b/resources/docker-compose/scipio.yaml.j2 @@ -0,0 +1,55 @@ +--- +version: "{{ omni_compose_version | string }}" + + +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: + image: mariadb:10 + hostname: scipio-database + networks: + - scipio + 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 + + phantom: + image: scipio:{{ omni_compose_apps.scipio.versions.phantom | default(omni_compose_apps.scipio.versions.default) }} + hostname: scipio-phantom + networks: + - scipio + environment: + SCIPIO_INTERVAL: "30" + SCIPIO_DB_BACKEND: MARIA + SCIPIO_DB_HOST: scipio-database + SCIPIO_DB_PORT: "3306" + SCIPIO_DB_USERNAME: root + SCIPIO_DB_PASSWORD: {{ omni_compose_app_secrets.scipio.database_password }} + SCIPIO_DB_SCHEMA: scipio + SCIPIO_PHANTOM_FEED: https://blog.tipranks.com/feed/ + SCIPIO_PHANTOM_HANDLER: tipranks + command: --phantom --verbose + deploy: + replicas: 1