Get the App
SLTechnology News&Howtos  ›  Servers  › 

10 minutes to learn docker-compose.yml

Shulou Source: shulou.com Published: 2022-06-03 09:38:59 12月06日 Update

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:

Tags: Information service configuration container common use directive file service configuration version example network resource Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Shulou Technology MySQL OPPO Reno macOS