Instalacion:
Se debe ejecutar el comando:
docker run --restart=always -itd -p 80:80 stevenosp/nginx:debian
Para conectarse correctamente se debe crear un docker con postgres con el siguiente comando
docker run -d -p 5432:5432 postgres
En el navegador ingresar a 172.17.0.2, en donde aparecen los datos parala conexión con postgres ; en caso de falla realizar el ispect para verifica la ip de nginx e ingresarla en el ordenador
CREDITOS
https://hub.docker.com/r/jprjr/debian-nginx/~/dockerfile/ https://hub.docker.com/r/morozco/nginx-php5-fpm/ https://hub.docker.com/_/postgres/
Content type
Image
Digest
Size
102.1 MB
Last updated
almost 10 years ago
docker pull stevenosp/nginx