This repository has been archived on 2024-05-02. You can view files and clone it, but cannot push or open issues or pull requests.
omni-ansible/resources/docker-compose/scipio.yaml.j2
Ethan Paul e333809b4a
Add dashboard container
Bump scipio version of 0.2.3
2021-01-15 01:55:25 -05:00

76 lines
1.9 KiB
Django/Jinja

---
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:{{ omni_compose_apps.scipio.versions.database | default(omni_compose_apps.scipio.versions.default) }}
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
dashboard:
image: adminer:{{ omni_compose_apps.scipio.versions.dashboard | default(omni_compose_apps.scipio.versions.default) }}
hostname: scipio-dashboard
depends_on:
- database
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
phantom:
image: scipio:{{ omni_compose_apps.scipio.versions.phantom | default(omni_compose_apps.scipio.versions.default) }}
hostname: scipio-phantom
depends_on:
- database
networks:
- scipio
environment:
SCIPIO_INTERVAL: "30"
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_PHANTOM_FEED: https://blog.tipranks.com/feed/
SCIPIO_PHANTOM_HANDLER: tipranks
command: --phantom -vv
deploy:
replicas: 1