backend: add CRUD for car
This commit is contained in:
23
docker-compose.yaml
Normal file
23
docker-compose.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
services:
|
||||
backend:
|
||||
build:
|
||||
context: backend
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "2027:5000"
|
||||
container_name: "${CONTAINER_NAME:-nyi-backend}"
|
||||
depends_on:
|
||||
- db # Ensure backend waits for db to start
|
||||
db:
|
||||
image: mysql:9.4.0
|
||||
container_name: nyi-db
|
||||
ports:
|
||||
- "${DB_SERVER}:${DB_PORT}:3306"
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=${ROOT_PWD}
|
||||
- MYSQL_DATABASE=${DB_NAME}
|
||||
volumes:
|
||||
- nyi_db_volume:/var/lib/mysql
|
||||
|
||||
volumes:
|
||||
nyi_db_volume:
|
||||
Reference in New Issue
Block a user