Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
group9_cw
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arya, Navin Chandra C (PG/T - Comp Sci & Elec Eng)
group9_cw
Commits
41ddf9d9
Commit
41ddf9d9
authored
1 year ago
by
Arya, Navin Chandra C (PG/T - Comp Sci & Elec Eng)
Browse files
Options
Downloads
Patches
Plain Diff
updated docker compose for mysql
parent
842597aa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker-compose.yml
+13
-13
13 additions, 13 deletions
docker-compose.yml
with
13 additions
and
13 deletions
docker-compose.yml
+
13
−
13
View file @
41ddf9d9
version
:
'
3'
services
:
#
MySQL service
#
database_mysql:
#
image: mysql:5.7
#
ports:
#
- "3306:3306"
#
environment:
#
MYSQL_ROOT_PASSWORD: root_password
#
MYSQL_DATABASE: your_database
#
MYSQL_USER: your_username
#
MYSQL_PASSWORD: your_password
#
volumes:
#
- mysql_data:/var/lib/mysql
#
- ./sql_files:/docker-entrypoint-initdb.d # Mount SQL files for initialization
MySQL service
database_mysql
:
image
:
mysql:5.7
ports
:
-
"
3306:3306"
environment
:
MYSQL_ROOT_PASSWORD
:
root_password
MYSQL_DATABASE
:
your_database
MYSQL_USER
:
your_username
MYSQL_PASSWORD
:
your_password
volumes
:
-
mysql_data:/var/lib/mysql
-
./sql_files:/docker-entrypoint-initdb.d
# Mount SQL files for initialization
# Frontend service
front_end_client
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment