Sign inSign up

onerpm/ubuntu-nginx-php8

By onerpm

•Updated over 3 years ago

Ubuntu 20.04 LTS container, with NGINX and PHP8.0-fpm installed and running with supervisord.

Image
0

1.1K

onerpm/ubuntu-nginx-php8 repository overview

ONErpm


Docker Hub; onerpm/ubuntu-nginx-php8 nginx 1.18 php 8.0

⁠Description

The container has ports 80 and 443, and the volume /var/www exposed to the host, it means you have to choose a port and volume on the host to map into the container ones. You can do the mapping using Docker Desktop, Kitematic (docker GUI), or by running the command below for the production environment:

docker run -dti -v ~/git/onerpm-api:/var/www -p 80:80 -p 443:443 onerpm/ubuntu-nginx-php8:latest

Or by running the command below for the development environment (with development tag):

docker run -dti -v ~/git/onerpm-api:/var/www -p 80:80 -p 443:443 --name onerpm-api onerpm/ubuntu-nginx-php8:development

Use the command below to access the container using the www-data user:

docker exec --user www-data -it onerpm-api bash
⁠Observations:

On development environment will be installed:

⁠Warning

I do not recommend using Docker on Windows unless you are using WSL 2⁠ or later, I suffered a lot when using Windows 10 HOME, because Docker uses a Virtualbox VM to run the containers, which makes ports and volumes sharing between the host and containers a nightmare, so try to run docker on Linux, MacOS, or a version of Windows that supports WSL2 or Hyper-V by all means.

Tag summary

Content type

Image

Digest

Size

207.5 MB

Last updated

over 4 years ago

docker pull onerpm/ubuntu-nginx-php8