HUB
Sign inSign up

seisma/ui

By seisma

•Updated almost 7 years ago

UI interface to seisma server

Image
0

1.4K

seisma/ui repository overview

⁠Run

docker run -e API_HOST=<api-host:api-port> -p 80:8080 seisma/ui:latest

⁠Environments

  • API_HOST - api server host
  • WORKER_PROCESSES - nginx worker processes
  • WORKER_CONNECTIONS - nginx worker connections

⁠Docker compose

version: '3'

services:
  redis:
    image: redis:3.2.8
    shm_size: 512mb
    expose:
      - 6379
    environment:
      TZ: Europe/Moscow

  mysql:
    image: mariadb:5.5.53
    shm_size: 1G
    expose:
      - 3306
    volumes:
      - /var/lib/mysql:/var/lib/mysql
      - /etc/mysql/conf.d:/etc/mysql/conf.d
    environment:
      TZ: Europe/Moscow
      MYSQL_ALLOW_EMPTY_PASSWORD: 1

  seisma-ui:
    image: seisma/ui:latest
    ports:
      - 80:8080
    restart: always
    depends_on:
      - seisma-api
    environment:
      TZ: Europe/Moscow
      API_HOST: seisma-api:5000
      WORKER_PROCESSES: 1
      WORKER_CONNECTIONS: 1024

  seisma-api:
    image: seisma/api:latest
    ports:
      - 8080:8080
    depends_on:
      - mysql
      - redis
    volumes:
      - /var/seisma/api:/root/.seisma
    environment:
      TZ: Europe/Moscow
      PROCESSES: 4
      GREENLETS: 100
      DATABASE_HOST: mysql
      DATABASE_PORT: 3306
      DATABASE_USER: root
      DATABASE_PASSWORD: ""
      REDIS_HOST: redis
      REDIS_PORT: 6379
      REDIS_DATABASE: 0

  seisma-cron:
    image: seisma/cron:latest
    depends_on:
      - mysql
    environment:
      TZ: Europe/Moscow
      DATABASE_HOST: mysql
      DATABASE_PORT: 3306
      DATABASE_USER: root
      DATABASE_PASSWORD: ""
      ROTATE_FOR_DAYS: 365
      MAX_BUILD_TIMEOUT: 60

⁠MySQL config example

Create config by path /etc/mysql/conf.d/seisma.conf with using docker-compose config

[mysqld]
skip-host-cache
skip-name-resolve
skip-external-locking

transaction-isolation = READ-COMMITTED

max_connections         = 100
connect_timeout         = 5
wait_timeout            = 600
max_allowed_packet      = 16M
thread_concurrency      = 4
thread_cache_size       = 128
sort_buffer_size        = 4M
bulk_insert_buffer_size = 16M
tmp_table_size          = 32M
max_heap_table_size     = 32M

myisam_recover          = BACKUP
key_buffer_size         = 128M
table_open_cache        = 400
myisam_sort_buffer_size = 512M
concurrent_insert       = 2
read_buffer_size        = 2M
read_rnd_buffer_size    = 1M

query_cache_limit        = 1M
query_cache_size         = 256M

slow_query_log_file    = /var/log/mysql/mariadb-slow.log
long_query_time        = 10

expire_logs_days       = 10
max_binlog_size        = 100M

default_storage_engine    = InnoDB

innodb_buffer_pool_size         = 2048M
innodb_log_buffer_size          = 8M
innodb_file_per_table           = 1
innodb_open_files               = 400
innodb_io_capacity              = 400
innodb_flush_method             = O_DIRECT
innodb_flush_log_at_trx_commit  = 2
innodb_additional_mem_pool_size = 20M
innodb_lock_wait_timeout        = 300
innodb_thread_concurrency       = 4

[isamchk]
key_buffer        = 16M
Tag summary
Recent tags
Content type
Image
Digest
Size
58.6 MB
Last updated
almost 7 years ago
docker pull seisma/ui:latest