Docker: Streama not using MySQL

Open
#963 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
32/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker-compose, mysql
Domain
databases, devops

Research direction

Start by reviewing the provided docker-compose.yml and the Streama container's ACTIVE_PROFILE and MYSQL_* environment settings, then inspect startup logs for database connection or schema-creation errors. Done means Streama connects to MySQL, creates its tables, and retains data after a container restart.

Written by the indexing model from the issue text.

Description

Issue description

Streama isn´t using mysql

Steps to Reproduce
  1. Create docker-compose.yml with mysql and streama
  2. docker-compose up -d
  3. Open Streama in Chrome/Firefox
Expected Behaviour

Stream should connect to MySQL and create tables

Actual Behaviour

Streama is accessible, but does not use the database.
After each restart, all data is gone

Environment Information
  • Operating System: Ubuntu 19.10
  • Streama version: v1.8.2
  • Container Version (If Applicable): gkiko/streama:latest
docker-compose.yml

` streama:

image: gkiko/streama:latest
depends_on:
- mysql
restart: always
networks:
- webserver
volumes:
- ./streama:/data
environment:
ACTIVE_PROFILE: mysql
MYSQL_HOST: mysql
MYSQL_PORT: 3306
MYSQL_DB: DB
MYSQL_USER: DB_User
MYSQL_PASSWORD: AGoodPassword
labels:
- 'traefik.enable=true'
- 'traefik.frontend.rule=Host:streama.domain.tld' `

Dominant language
JavaScript
Stars
9.8k
Forks
978
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from streamaserver/streama

All issues in streamaserver/streama

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.