I set up a larvel project, created a docker-compose below:
# v3 syntax
version: 3
services:
# PHP (apache)
blog:
image: php:7.1-apache
container_name: blog-apache
ports:
- "8000:80"
volumes:
- .:/var/www/blog
- ./apache/000-default.conf:/etc/apache2/sites-enabled/000-default.conf
command: "chown www-data:www-data /var/www/blog/storage:
But when I run docker-compose up -d on the terminal the exit container, only with the line "command:", when I throw this line the container goes up normal.
I need this command line to change the permissions on the storage folder. How can I do it?