docker run -d -v /home/user/database:/database --name my_app my_app:my_tag
version: 3
services:
my_app:
image: my_app:my_tag
container_name: my_app
volumes:
- /home/user/database:/database
RUN pear upgrade --force --alldeps http://pear.php.net/get/PEAR-1.10.1
RUN pear clear-cache
...
RUN pear upgrade --force --alldeps http://pear.php.net/get/PEAR-1.10.1 &&\
pear clear-cache
...
docker build ...
ENTRYPOINT ["npm", "run", "start"]