Skip to content

dalejorm/DockerServiceWeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Docker Service Web UberGallery

Docker UberGallery Container Tutorial Youtube

Usage

Pull Container

   docker pull php:7.4.6-apache

Example 1

Create Image

Pull DockerFile from the Project repository, after execute:

docker build -t gallery:1.0 .

Run

Run the image for compile container, binding associated ports:

docker run -d --name UberGallery1 -p 8080:80 gallery:1.0

Services

Service Port Usage
UberGallery1 8080 When using UberGallery1 run, visit http://localhost:8080/UberGallery in your browser

Example 2

Create volume

Run the sentence for create volume:

   docker volume create volumen-images

Run

Run the image for compile container, binding associated ports and asociate volume:

docker run -d --name UberGallery2 -p 8080:80 -v volumen-images:/var/www/html/UberGallery/gallery-images/ gallery:1.0

Services

Service Port Usage
UberGallery2 8080 When using UberGallery2 run, visit http://localhost:8080/UberGallery in your browser

Volumes

Volume Description
var/www/html/UberGallery/gallery-images/ The location of the Gallery of UberGallery2 application root.

NOTE: Use images .PNG

About

Service Web (UberGallery) in Container php:apache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published