forked from HumanSignal/label-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding support for MySQL * Updating MySQL version to 8 in docker-compose * Using docker-compose overrides for MySQL * Conditionally setting db_index if DJANGO_DB is not mysql
- Loading branch information
Showing
8 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,4 @@ boxing>=0.1.4 | |
redis>=3.5.0 | ||
sentry-sdk>=1.1.0 | ||
label-studio-converter==0.0.31rc1 | ||
mysqlclient>=2.0.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: '3.3' | ||
|
||
services: | ||
app: | ||
environment: | ||
- DJANGO_DB=mysql | ||
- MYSQL_NAME=labelstudio | ||
- MYSQL_USER=root | ||
- MYSQL_PASSWORD=password | ||
- MYSQL_PORT=3306 | ||
- MYSQL_HOST=db | ||
- POSTGRE_HOST= # override POSTGRE vars to empty values | ||
|
||
db: | ||
image: mysql:8 | ||
hostname: db | ||
restart: always | ||
environment: | ||
- MYSQL_ROOT_PASSWORD=password | ||
- MYSQL_DATABASE=labelstudio | ||
volumes: | ||
- ${MYSQL_DATA_DIR:-./mysql-data}:/var/lib/mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters