Coder Social home page Coder Social logo

tzgued / docker-php-symfony-angular Goto Github PK

View Code? Open in Web Editor NEW
18.0 6.0 18.0 1.84 MB

Starter setup for Symfony 4 and Angular 6 Dockerized Project

PHP 9.59% CSS 53.60% JavaScript 12.21% HTML 2.73% Shell 10.16% TypeScript 7.98% Dockerfile 3.73%
docker docker-compose php7-fpm angular6 php71-docker phpmyadmin mysql apache nginx angular

docker-php-symfony-angular's Introduction

Starter setup for Symfony 4 and Angular 6 Dockerized Project

Docker compose for symfony + mysql + angular project

Presentation

This is a docker composed project that can be used to quickly start a SF4 Angular 6 Project. PS:

  • The ports used in the docker-compose.yml maybe not the ones you would love to setup expecially the NGINX on port 81.
  • For developping on Angular I prefer to ng-serve on my machine. It is perfectly fine if you want to add another container based on node and run your dev on it. I may push another version with that.
  • It's my first time doing such contribution to the github community, so feel free to interact in any way you like.

Docker containers:

	DataBase:
	 1. MySQL
	 2. PhpMyAdmin
	
	Server Code:
	 1. PHP
	 2. Apache
 
	 Front End Code:
	 1. NGINX

Usage

Run development environment

$ docker-compose up

or run in background

$ docker-compose up -d

To down environment

$ docker-compose down

Useful

Show all container

$ docker-compose ps

Connect to container

$ docker exec -it {container_name} bash

Fix minor problem with docker images

$ docker-compose up --force-recreate

Hacks

For correct work with angular app you must fix package.json

"scripts": {
    "ng": "ng",
    "start": "ng serve --host 0.0.0.0",
    ....

Access to projects

Symfony: http://localhost:82

Angular: http://localhost:4200

Phpmyadmin: http://localhost:8080

docker-php-symfony-angular's People

Contributors

gilwi avatar tzgued avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docker-php-symfony-angular's Issues

MYSQL - build or pull?

Hi,
I ran your template to bootstrap a quick demo of the technologies used in the project, many thanks for providing it!
But by default, I had trouble with the MYSQL container which didn't let me log in.

I noticed you have a .docker/mysql directory that is not used, the compose file pulling directly mysql:5.7, are you planning to move to a custom mysql container?

Then, my real issue was your default .env file that didn't get parsed properly (spaces and quotes).
May I submit a PR fixing this typo?

Best regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.