spot7.org logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories

Symfony 2 application on Vagrant + Docker


I haven't used vagrant with docker, but I have had a simliar issue just using vagrant and symfony. I had to configure the permissions for the logs and cache dirs in the vagrant file, so something like this (guest is Ubuntu 14.04):

config.vm.synced_folder
"symfony/app/cache", "/vagrant/symfony/app/cache",
owner: "www-data", group: "vagrant",
mount_options: ["dmode=775,fmode=664"]
config.vm.synced_folder "symfony/app/logs",
"/vagrant/symfony/app/logs", owner: "www-data",
group: "vagrant", mount_options:
["dmode=775,fmode=664"]

This changes the permissions for those directories, but like I said, I am not sure how it will all work using docker as well. It's worth a shot anyways.

I should also mention, depending on your symfony version, the directories might be /var/logs and /var/cache, so double check that as well.


Categories : Symfony2

Related to : Symfony 2 application on Vagrant + Docker
How to setup a MongoDB with Vagrant and Docker
In order for servers to communicate I guess you would need to configure port forwarding properly, so that routing server would be able to access shards, and vice versa. With Vagrant one can configure port forwarding, and in this case, I suppose also needs to be combined with ports being properly configured for Docker containers. Refer to Vagrant Networking Configuration page and Vagrant's Docker

Categories : Mongodb
How to deploy application on JoNaS in a Docker container
It sounds like you want to expose the Cargo port from the Docker container so that Jenkins can connect to the Docker host IP on that port to get into the container. See http://docs.docker.com/reference/run/#expose-incoming-ports for usage. For example, if the Cargo port was 6767, you might run the container with -p 6767:6767 which would allow Jenkins to connect to port 6767 on the Docker host IP (

Categories : Maven
How to combine docker images to support python application
You will only have two containers. Both your database and python app presumably need a Linux OS of one flavor or another. In your docker file you would start with something like with ubuntu to pull in a base image and make your changes. Using the diff based file system your changes will be layered on top of the base image.

Categories : Docker
Java application cannot get IP address of the host in docker container with static IP
The documentation for InetAddress.getLocalHost() says: Returns the address of the local host. This is achieved by retrieving the name of the host from the system, then resolving that name into an InetAddress. Since you didn't take any steps to make your static IP address resolvable inside the container, it doesn't work. To find the address in Java without going via hostname you could enumer

Categories : Docker
Why should i use vagrant if i use virtualenv?
The difference between virtualenv and Vagrant is that virtualenv is only about separate Python installations whereas Vagrant is about the whole machine. virtualenv isolates the Python interpreter and the Python dependencies on one machine so you can install multiple Python projects alongside each other with their own dependencies. But for the rest of the machine the virtualenv doesn't do anythin

Categories : Python
Recently Add
Exception handling app/logs/dev.log
How do I Download the Symfony Distribution as Zip archive?
Remove web part of url in web.config for Symfony 2
OneToOne relation with sonata_type_admin : field not linked to an admin
how to define variable in yaml symfony2
Symfony2 Lifecycle Events wont fire on update() function
Error when trying to acces website url during deployment Sympfony2
In Symfony 2 / Doctrine 2, can you change the inheritance at runtime (i.e. add a class)?
Doctrine2 Many To Many Polymorphic Relations
Force Doctrine to Load Associated Entities in JOIN
How to implement two tables intersection on Doctrine2 Symfony2
How to run a command when a Symfony2 project is online (production mode)
Best practices of naming the keys for Symfony transaltion component
Symfony 2 security issues with multiple providers, multiple firewalls and multiple hosts
Testing Symfony2 emails with Behat 3
I cannot see doctrine:generate:migration command in symfony2
How to get Sonata Media Bundle to generate pictures in separate folders
Symfony2 and guzzle compatibility
Symfony DI injects an empty array instead of entity manager object
No route found for "GET /numbers"
Symfony 2 application on Vagrant + Docker
Symfony2 authenticate user through an API on integration testing
Running two Symfony commands at the same time
How to set form name in Symfony2?
Symfony2, get value of input field with Twig
How to display Events in Calendar page
Symfony2 + tinyMCE Bundle - JustBoil.me don't show
Doctrine ORM Custom Column Collation
Invalid field override named 'email'
© Copyright 2017 spot7.org Publishing Limited. All rights reserved.