-
Notifications
You must be signed in to change notification settings - Fork 19
Younesbranch #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Younesbranch #11
Changes from 26 commits
0e0dc19
18fd14c
1768c46
556f0c0
8849fbe
8f680f6
c08cf1e
6013ee1
c49ab49
4e61a61
0e545fe
59acdec
6ca0b95
7462839
7a5da4b
d848b44
9b7d0ea
edd1f76
e44fd37
8b986bb
88194e2
d5fcb10
988c6e2
5a39fed
a8a2cc7
3e6d5bb
f12317c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| target/ | ||
| /.idea/ | ||
| docker-compose.yml | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,17 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| version: '3.8' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| services: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mysql: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| image: mysql:9.5.0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| container_name: restaurant_booking_db | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| environment: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| MYSQL_ROOT_PASSWORD: root123 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| MYSQL_DATABASE: restaurant_booking | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ports: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - "3306:3306" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| volumes: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - mysql_data:/var/lib/mysql | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| restart: unless-stopped | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| volumes: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mysql_data: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+1
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: Recent official Docker Hub mysql tags (examples seen in 2024–2025):
For the full, up-to-date tag list (including older versions and all platform/OS variants) see the official Docker Hub Tags tab for the mysql image. [1] Sources: 🌐 Web query:
💡 Result: Yes — the official mysql image on Docker Hub includes the tag "9.5.0". See the tags list on Docker Hub. [1] You can pull it with: Sources: 🌐 Web query:
💡 Result: Yes — the official Docker Hub mysql image includes MySQL 8.4 ( LTS ) tags (e.g., 8.4, 8.4.7, lts). Pull with, for example, Sources:
The Suggested compose improvements (credentials/port/user) version: '3.8'
services:
mysql:
image: mysql:9.5.0
container_name: restaurant_booking_db
environment:
- MYSQL_ROOT_PASSWORD: root123
- MYSQL_DATABASE: restaurant_booking
+ MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-root123}
+ MYSQL_DATABASE: ${MYSQL_DATABASE:-restaurant_booking}
+ MYSQL_USER: ${MYSQL_USER:-restaurant_app}
+ MYSQL_PASSWORD: ${MYSQL_PASSWORD:-restaurant_app_pw}
ports:
- - "3306:3306"
+ - "127.0.0.1:3306:3306"
volumes:
- mysql_data:/var/lib/mysql
restart: unless-stoppedThis allows overriding credentials via environment variables and restricts port exposure to localhost, reducing unintended network access. 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.