I am very new to this, but trying to learn Docker. I have my apache server running from the below Compose file and now I want to install Smarty template tool.
I am trying to get a portable container that I can move between machines, so I think I need to put it all in the same compose file (but I am likely looking at this wrong).
Smarty say to use "compose require smarty/smarty" but I have no idea (yet) how to do this :-)
Can anyone help me?
version: "3"
services:
webserver:
image: php:apache
ports:
- 32001:80
volumes:
- volHTML:/var/www/html
restart: always
volumes:
volHTML:
driver: local
driver_opts:
type: cifs
device: ${htmlpath}
o: username=${uid},password=${pwd},uid=1000,gid=1000
networks: {}