Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
advanced_coursework
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
Yankova, Liliya (UG - Computer Science)
advanced_coursework
Commits
3fc236ea
Commit
3fc236ea
authored
4 years ago
by
Yankova, Liliya (UG - Computer Science)
Browse files
Options
Downloads
Patches
Plain Diff
Added a new mysql container for recipe service
parent
7f559833
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.DS_Store
+0
-0
0 additions, 0 deletions
.DS_Store
docker-compose.yaml
+22
-4
22 additions, 4 deletions
docker-compose.yaml
php/config.php
+1
-1
1 addition, 1 deletion
php/config.php
with
23 additions
and
5 deletions
.DS_Store
+
0
−
0
View file @
3fc236ea
No preview for this file type
This diff is collapsed.
Click to expand it.
docker-compose.yaml
+
22
−
4
View file @
3fc236ea
version
:
'
3'
version
:
'
3'
services
:
services
:
db
:
user
db
:
image
:
mysql:8.0
image
:
mysql:8.0
container_name
:
db
container_name
:
user_
db
volumes
:
volumes
:
-
dbdata:/var/lib/mysql
-
dbdata:/var/lib/mysql
command
:
--default-authentication-plugin=mysql_native_password
command
:
--default-authentication-plugin=mysql_native_password
...
@@ -22,7 +22,7 @@ services:
...
@@ -22,7 +22,7 @@ services:
image
:
php:7.2.2-apache
image
:
php:7.2.2-apache
container_name
:
php_web
container_name
:
php_web
depends_on
:
depends_on
:
-
db
-
user
db
volumes
:
volumes
:
-
./php/:/var/www/html/
-
./php/:/var/www/html/
ports
:
ports
:
...
@@ -30,5 +30,23 @@ services:
...
@@ -30,5 +30,23 @@ services:
stdin_open
:
true
stdin_open
:
true
tty
:
true
tty
:
true
recipedb
:
image
:
mysql:8.0
container_name
:
recipe_db
volumes
:
-
recipedata:/var/lib/mysql
command
:
--default-authentication-plugin=mysql_native_password
restart
:
always
environment
:
MYSQL_ROOT_PASSWORD
:
reciperoot
MYSQL_DATABASE
:
recipedb
MYSQL_USER
:
recipe_user
MYSQL_PASSWORD
:
recipe_user
ports
:
-
"
9907:3306"
expose
:
-
"
9907"
volumes
:
volumes
:
dbdata
:
dbdata
:
\ No newline at end of file
recipedata
:
\ No newline at end of file
This diff is collapsed.
Click to expand it.
php/config.php
+
1
−
1
View file @
3fc236ea
<?php
<?php
//Database credentials
//Database credentials
define
(
'DB_SERVER'
,
'db'
);
define
(
'DB_SERVER'
,
'
user
db'
);
define
(
'DB_USERNAME'
,
'service_user'
);
define
(
'DB_USERNAME'
,
'service_user'
);
define
(
'DB_PASSWORD'
,
'service_user'
);
define
(
'DB_PASSWORD'
,
'service_user'
);
define
(
'DB_NAME'
,
'userdb'
);
define
(
'DB_NAME'
,
'userdb'
);
...
...
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