10 minutes to learn docker-compose.yml
Docker-compose.yml example:
The resource orchestration file defines version information, services service configuration, networks network information, volumes volume information, and contains the container configuration for each service startup.
Version: '3'services: db: hostname: db image: mysql:5 command:-- default-authentication-plugin=mysql_native_password ports:-3306 environment: MYSQL_DATABASE: starter MYSQL_ROOT_PASSWORD: root api: image: starter_api:latest build:. Ports:-8011 depends_on:-dbdocker-compose.yml common instructions: