18 lines
411 B
YAML
18 lines
411 B
YAML
services:
|
|
api:
|
|
build: .
|
|
ports:
|
|
- "3001:3000"
|
|
command: "npm run start:dev"
|
|
database:
|
|
image: "mysql:8"
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
restart: always
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: myfreight
|
|
ports:
|
|
- 13306:3306
|
|
volumes:
|
|
- "./database/lib:/var/lib/mysql"
|
|
- "./database/entrypoint:/docker-entrypoint-initdb.d"
|