Public | Automated Build

Last pushed: 2 months ago
Short Description
Nginx Docker image for ArConnect project
Full Description


Reverse proxy

Uses image nginx-proxy from jwilder.

The reverse proxy service must be launch independamently at the first time, with the command

$ docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro --name reverse-proxy --net=arconnectapi_default jwilder/nginx-proxy
$ docker network connect arconnectstatic_default reverse-proxy
$ docker network connect arconnectcustomer_default reverse-proxy

DNS and dev environment

To be able to use domain names in dev environment, you need to install dnsmasq

$ sudo apt-get install dnsmasq

Change its configuration file to add the global domain name of the application

$ sudo vim /etc/dnsmasq.conf

Add these entries

# Add domains which you want to force to an IP address here.
# The example below send any host in to a local
# web-server.

And restart the service

$ sudo service dnsmasq restart


Evironment variables

variable dev preprod prod description
PROJET_ENV dev preprod prod Platform environment. Used to run compose on the right one
SYMFONY_ENV dev prod prod Symfony environment
Docker Pull Command
Source Repository