Code Monkey home page Code Monkey logo

webserivces's Introduction

Documentation - Webservices (Docker)

Table of contents

  1. Draft
  2. About this project
  3. Makefile

1. Draft

Hier sollte ein Bild sein



2. About this project

2.1 In this project, 3 Docker services are provided.

  1. PHP Container (More details are explained in the point 2.2)
  2. PHPmyAdmin Container -> Link to Docker Hub -> PHPmyAdmin
  3. MariaDB Container -> Link to Docker Hub -> MariaDB

2.2 How is the PHP image built in Dockerfile?

With the From command we use a base image to set up our own image later on

From php:8.0.18-apache

With the command WORKDIR it should go into the directory /var/www/html

WORKDIR /var/www/html

Now with the copy command it should copy over from the local src folder to the Docker host

COPY ./src/ /var/www/html

With the RUN command it should install updates and software.

RUN apt-get update && apt-get install -y\
  vim
  ...
  ..
  .

3. Makefile

A Makefile is there to tell the make program what to do, for example to start or stop the Docker container.
More details are given in the table.

Important!!! If necessary insert a sudo command before make

Command background execution command Description
make build docker-compose build Build the image
make up docker-compose up -d Build and run the image
make up_attached docker-compose up Bild and run the container, but keep attached
make down docker-compose down Stop the container. Removes attached volumes
make logs docker-compose logs -f Attach to container logs
make restart docker-compose restart Restart the container
make delete docker image prune -a && docker image ls All images will be deleted and after that all images should be listed
make version docker-compose --version; docker --version Show version of Docker-compose and Docker

webserivces's People

Contributors

joqarsabon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.