Code Monkey home page Code Monkey logo

docker-images's Introduction

docker-images

Docker Image Apache2 Ubuntu

pull apache2:latest

docker pull huezohuezo1990/apache2:latest

run apache2:latest

docker run -d --restart=always -p 80:80 --name apache2-ubuntu huezohuezo1990/apache2:latest

docker-compose.yml



version: '3'

services:
  apache:
#    restart: on-failure
    restart: always
    image: 'huezohuezo1990/apache2:latest'
    ports:
      - '80:80'
      - '443:443'
    volumes:
      - 'apache2_volumen:/var/www/html/'
volumes:
  apache2_volumen:
    driver: local



Contenedor:

docker-compose up -d

swarm y stack :

docker stack deploy --compose-file=docker-compose.yml apache2-service

docker-compose.yml v3

docker stack deploy -c docker-compose.yml apache2

version: "3"
services:
  apache2:
    image: huezohuezo1990/apache2:latest
    deploy:
      replicas: 1
      resources:
        limits:
          cpus: "0.1"
          memory: 50M
      restart_policy:
        condition: on-failure
    ports:
      - "80:80"
    networks:
      - apache2
networks:
  apache2:

or

run port 8080

docker run -d --restart=always -p 8080:80 --name apache2-ubuntu huezohuezo1990/apache2:latest

swarm service apache2:latest

docker service create --name apache2-service --restart-condition on-failure -p 80:80 huezohuezo1990/apache2:latest

or

swarm service port 8080 apache2:latest

docker service create --name apache2-service --restart-condition on-failure -p 8080:80 huezohuezo1990/apache2:latest

pull apache2:bionic

docker pull huezohuezo1990/apache2:bionic

run apache2:bionic

docker run -d --restart=always -p 80:80 --name apache2-ubuntu huezohuezo1990/apache2:bionic

docker-compose.yml


version: '3'

services:
  apache:
#    restart: on-failure
    restart: always
    image: 'huezohuezo1990/apache2:bionic'
    ports:
      - '80:80'
      - '443:443'
    volumes:
      - 'apache2_volumen:/var/www/html/'
volumes:
  apache2_volumen:
    driver: local



Contenedor:

docker-compose up -d

swarm y stack :

docker stack deploy --compose-file=docker-compose.yml apache2-service

docker-compose.yml v3

docker stack deploy -c docker-compose.yml apache2-bionic

version: "3"
services:
  apache2:
    image: huezohuezo1990/apache2:bionic
    deploy:
      replicas: 1
      resources:
        limits:
          cpus: "0.1"
          memory: 50M
      restart_policy:
        condition: on-failure
    ports:
      - "80:80"
    networks:
      - apache2
networks:
  apache2:

or

run port 8080

docker run -d --restart=always -p 8080:80 --name apache2-ubuntu huezohuezo1990/apache2:bionic

pull apache2 + php

docker pull huezohuezo1990/apache2:apache2php

run apache2 + php

docker run -d --restart=always -p 80:80 --name apache2php-ubuntu huezohuezo1990/apache2:apache2php

docker-compose.yml


version: '3'

services:
  apache:
#    restart: on-failure
    restart: always
    image: 'huezohuezo1990/apache2:apache2php'
    ports:
      - '80:80'
      - '443:443'
    volumes:
      - 'apache2_volumen:/var/www/html/'
volumes:
  apache2_volumen:
    driver: local


Contenedor:

docker-compose up -d

swarm y stack :

docker stack deploy --compose-file=docker-compose.yml apache2php-service

docker-compose.yml v3

docker stack deploy -c docker-compose.yml apache2-php

version: "3"
services:
  apache2:
    image: huezohuezo1990/apache2:apache2php
    deploy:
      replicas: 1
      resources:
        limits:
          cpus: "0.1"
          memory: 50M
      restart_policy:
        condition: on-failure
    ports:
      - "80:80"
    networks:
      - apache2
networks:
  apache2:

run apache2 + php puerto 8081

docker run -d --restart=always -p 8081:80 --name apache2php-ubuntu huezohuezo1990/apache2:apache2php

docker hub

page

https://huezo.github.io/docker-images/

docker-images's People

Contributors

huezo avatar

Watchers

James Cloos 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.