Add IntelliJ run configurations
This commit is contained in:
21
docker-compose.db.yml
Normal file
21
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