-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from arifszn/mysq-service
Add MySQL in the service offerings
- Loading branch information
Showing
6 changed files
with
104 additions
and
30 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
const MY_SQL = 'mysql'; | ||
const MINIO = 'minio'; | ||
|
||
const NODE_14 = '14'; | ||
const NODE_16 = '16'; | ||
const NODE_18 = '18'; | ||
|
||
const SERVICES = [MY_SQL, MINIO]; | ||
const SERVICES = [MY_SQL]; | ||
|
||
const SERVICES_WITH_VOLUME = [MY_SQL]; | ||
|
||
const NODE_VERSIONS = [NODE_14, NODE_16, NODE_18]; | ||
|
||
// export all | ||
module.exports = { | ||
MY_SQL, | ||
MINIO, | ||
NODE_VERSIONS, | ||
NODE_14, | ||
NODE_16, | ||
NODE_18, | ||
SERVICES, | ||
SERVICES_WITH_VOLUME, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
mysql: | ||
image: 'mysql/mysql-server:8.0' | ||
ports: | ||
- '${FORWARD_DB_PORT:-3306}:3306' | ||
environment: | ||
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}' | ||
MYSQL_ROOT_HOST: "%" | ||
MYSQL_DATABASE: '${DB_DATABASE}' | ||
MYSQL_USER: '${DB_USERNAME}' | ||
MYSQL_PASSWORD: '${DB_PASSWORD}' | ||
MYSQL_ALLOW_EMPTY_PASSWORD: 1 | ||
volumes: | ||
- 'vail-mysql:/var/lib/mysql' | ||
networks: | ||
- vail | ||
healthcheck: | ||
test: ["CMD", "mysqladmin", "ping", "-p${DB_PASSWORD}"] | ||
retries: 3 | ||
timeout: 5s | ||
|