A personnal personnal project just for fun
A small blog motor:
- Edit and publish markdown content
-
Symfony 3.2
-
PHP7
-
MongoDB 3.4
[x] Dockerize the environment [x] Clean up useless Symfony dependencies [ ] Add MongoDb support [ ] Init tests [ ] Add front routes [ ] Add Backend routes [ ] Add templates
docker-compose up -d
docker-compose down && docker-compose rm && docker-compose build
docker exec -it blog4fun_web_1 /bin/bash
docker exec -it blog4fun_db_1 /bin/bash
Run your composer and symfony command command in the web container
docker exec -it -u 1000 blog4fun_web_1 php composer.phar install --prefer-dist -a
docker exec -it -u 1000 blog4fun_web_1 php bin/console cache:clear
You have to create a mongo user :
docker exec -it blog4fun_db_1 mongo admin
db.createUser({ user: 'blog4fun', pwd: 'blog4fun_pwd', roles: [ { role: "readWrite", db: "blog4fun" } ] });