title: Docker. Create directory in container after docker-compose up and give it r/w permissions
body: <p>How to create another <code>/tmp</code> directory, for example, in the same container and give it <code>r/w</code> permissions?</p>
  
  <p>docker-compose.yml:</p>
  
  <pre><code>nginx:
      image: nginx
      ports:
        - 80:80
      volumes:
        - ./volumes/nginx/conf.d:/etc/nginx/conf.d
      command: nginx -g "daemon off;"
      networks:
        - network
  </code></pre>