7,540
edits
Changes
Docker
,→How to use docker-compose
docker-compose.yml
<syntaxhighlight lang="C++">
version: '3'services: wordpress: build: ./wordpress links: - db:mysql ports: - 8080:80
db: image: mariadb environment: MYSQL_ROOT_PASSWORD: example
</syntaxhighlight>
{{note|You can use only space to make indention. Tab is not supported }}
<br>
==docker-compose.yml syntax==