GithubHelp home page GithubHelp logo

mihsar / docker-symfony-angular Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zakivanovic/docker-symfony-angular

0.0 0.0 0.0 1.56 MB

Run a Symfony application using Docker & docker-compose

License: BSD Zero Clause License

Shell 0.07% JavaScript 27.32% PHP 6.18% TypeScript 9.02% CSS 53.43% HTML 2.01% Dockerfile 1.97%

docker-symfony-angular's Introduction

docker-symfony

Build and Run:

$ docker-compose up -d

Enter php container and install symfony vendors:

$ php composer.phar install

If you want to rebuild angular app, enter node container and execute:

$ npm build

URL to Front : http://localhost (or http://localhost:4200 for dev) URL to Back : http://localhost/api

Note : you can rebuild all Docker images by running:

$ docker-compose build --force-rm

How it works?

Here are the docker-compose built images:

  • db: This is the MySQL database container (can be changed to postgresql or whatever in docker-compose.yml file),
  • php: This is the PHP-FPM container including the application volume mounted on,
  • nginx: This is the Nginx webserver container in which php volumes are mounted too,
  • node: This is a Node.js container which builds the Angular app

This results in the following running containers:

> $ docker-compose ps

Read logs

You can access Nginx and Symfony application logs in the following directories on your host machine:

  • logs/nginx
  • logs/back

Use xdebug!

To use xdebug change the line "docker.host:127.0.0.1" in docker-compose.yml and replace 127.0.0.1 with your machine ip addres. If your IDE default port is not set to 5902 you should do that, too.

Code license

You are free to use the code in this repository under the terms of the 0-clause BSD license. LICENSE contains a copy of this license.

docker-symfony-angular's People

Contributors

eko avatar julbrs avatar gritt avatar lrkwz avatar samsch avatar ahmedofali avatar akovalyov avatar b-galati avatar captainjojo avatar maxooo avatar valerianpereira avatar waldyrious avatar mickadoo avatar nicramarcin avatar phpeek avatar vria avatar

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.