be persistent on my system, in this way I doesn't lose the image uploaded by the user, so I did this:
php-fpm:
container_name: php_app
restart: always
build:
context: .
dockerfile: ./docker/php-fpm/Dockerfile
volumes:
- ./src:/var/www/html
- ./docker/php-fpm/config/www.conf:/usr/local/etc/php-fpm.d/www.conf
- ./src/public:/assoservizi_app/public
- ./src/writable:/assoservizi_app/writable
is this a good way?
yes
Just a thing: assoservizi_app in which location is created on the system?
assoservizi refers to path in the container
But if I destroy the container I lose all the image?
hostpath:containerpath. Your data will be on the host path
Обсуждают сегодня