Add 'backend/' from commit '51bf07d5e16469036a8363e6b9d53616cbed643f'
git-subtree-dir: backend
git-subtree-mainline: 6dc2b48035ed90480e499efdb4513dff7b566616
git-subtree-split: 51bf07d5e1
This commit is contained in:
21
backend/docker-compose.db.yml
Normal file
21
backend/docker-compose.db.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
services:
|
||||
db:
|
||||
image: mysql:8.0
|
||||
container_name: petshop-db
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
MYSQL_DATABASE: Petstoredb
|
||||
MYSQL_USER: petshop
|
||||
MYSQL_PASSWORD: petshop
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- db_data:/var/lib/mysql
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-uroot", "-proot"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 30
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
Reference in New Issue
Block a user