7,540
edits
Changes
Docker
,→How to use composition
==How to use composition==
<syntaxhighlight lang="C++">
FROM wordpress:latest
COPY ["./example.html","/var/www/html/example.html"]
VOLUME /var/www/html
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["apache2-foreground"]
</syntaxhighlight>
docker-compose.yml
<syntaxhighlight lang="C++">
wordpress: