Fix database connection

This commit is contained in:
Stephan Porada 2021-04-30 15:48:17 +02:00
parent 849a45a24d
commit d573b93f10
2 changed files with 4 additions and 3 deletions

View File

@ -11,8 +11,10 @@ services:
- osp-db - osp-db
- osp-redis - osp-redis
container_name: osp-app container_name: osp-app
entrypoint: ["/opt/osp/setup/docker/wait-for-it.sh", "db:3306", "-t", "60", "--", "/opt/osp/setup/docker/entrypoint.sh"] entrypoint: ["/opt/osp/setup/docker/wait-for-it.sh", "osp-db:3306", "-t", "60", "--", "/opt/osp/setup/docker/entrypoint.sh"]
env_file: live.env env_file: live.env
environment:
- DB_URL=mysql+pymysql://${MYSQL_USER}:${MYSQL_PASSWORD}@${MYSQL_HOST}/${MYSQL_DATABASE}
image: deamos/openstreamingplatform:latest image: deamos/openstreamingplatform:latest
labels: labels:
# Watchtower # Watchtower

View File

@ -11,7 +11,6 @@ REDIS_HOST_PASSWORD=password_redis
# osp # osp
OSP_ROOT=/home/compute/services/osp OSP_ROOT=/home/compute/services/osp
DB_URL=mysql+pymysql://osp:password_db@osp-db/osp?charset=utf8mb4 # Change these according to above set parameters following this schema mysql+pymysql://username:password@localhost/osp?charset=utf8mb4
FLASK_SECRET=very_secret_key_change_me FLASK_SECRET=very_secret_key_change_me
FLASK_SALT=very_secret_salt_key_change_me FLASK_SALT=very_secret_salt_key_change_me
REDIS_PASSWORD=password_redis REDIS_PASSWORD=password_redis