Ubuntu 20.04 LTS container, with NGINX and PHP8.0-fpm installed and running with supervisord.
1.1K
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
On development environment will be installed:
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.
Content type
Image
Digest
Size
207.5 MB
Last updated
over 4 years ago
docker pull onerpm/ubuntu-nginx-php8