Fix database connection
This commit is contained in:
parent
849a45a24d
commit
d573b93f10
@ -11,8 +11,10 @@ services:
|
||||
- osp-db
|
||||
- osp-redis
|
||||
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
|
||||
environment:
|
||||
- DB_URL=mysql+pymysql://${MYSQL_USER}:${MYSQL_PASSWORD}@${MYSQL_HOST}/${MYSQL_DATABASE}
|
||||
image: deamos/openstreamingplatform:latest
|
||||
labels:
|
||||
# Watchtower
|
||||
|
@ -11,7 +11,6 @@ REDIS_HOST_PASSWORD=password_redis
|
||||
|
||||
# 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_SALT=very_secret_salt_key_change_me
|
||||
REDIS_PASSWORD=password_redis
|
||||
|
Loading…
Reference in New Issue
Block a user