This is a project created to facilitate the integration between applications and freight gateways, created in Symfony and adapted for use in Docker.
First, clone this repository:
$ git clone https://github.com/alexrmsouza/shippings.git
Then, run:
$ cd shippings
$ docker-compose up -d --build
Go to the container bash and run:
$ composer install
You are done, you can visit your Symfony application on the following URL: http://localhost
Note : you can rebuild all Docker images by running:
$ docker-compose down
$ docker-compose up -d --build
Here are the docker-compose
built images:
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,
You can access Nginx and Symfony application logs in the following directories on your host machine:
logs/*
Configure your IDE to use port 5902 for XDebug.
Docker versions below 18.03.1 don't support the Docker variable host.docker.internal
.
In that case you'd have to swap out host.docker.internal
with your machine IP address in php-fpm/xdebug.ini.
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.