Giter Club home page Giter Club logo

webcontainer's Introduction

WebContainer

Basic custom made docker web container

WebContainers Tags

  • core - is the main source aka the core for other tags, to make things a bit cleaner
  • nginx - Uses Nginx as the web server
  • openresty - Uses OpenResty as the web server

Currently includes

  • PHP 7.4, 8.0, 8.1, 8.2, 8.3 (Including premade nginx/openresty scripts)
  • Nginx or Openresty (Depends what you going to use)
  • Cron
  • Python 3 and 2
  • PHP Composer
  • Systemd replacer (Python) - Incase if you want to use Pterodactyl or Pelican, you will need to use it for the service
  • Certbot or LetsEncrypt

When using this docker container its best to use docker-compose

docker command example:

docker run -d -it -p 80:80 -p 443:443 -v ./web/web:/web -v ./web/config:/config -v ./web/scripts:/scripts --restart unless-stopped --mount type=tmpfs,destination=/tmp vooplv/webcontainer:tag

docker-compose example:

version: "3.9"
services:
  webcontainer:
    image: vooplv/webcontainer:tag
    tty: true
    stdin_open: true
    tmpfs:
      - /tmp
    volumes:
      - "./web/web:/web"
      - "./web/config:/config"
      - "./web/scripts:/scripts"
    ports:
      - "80:80"
      - "443:443"
    restart: unless-stopped

Link to the Docker Hub https://hub.docker.com/r/vooplv/webcontainer

If you want to stop the auto package update on the container start up then you will need to an environment variables

Docker Command

-e UPDATE_ON_LAUNCH=true

Docker Compose

environment:
    UPDATE_ON_LAUNCH: true

Building the Docker images (WIP)

It is pretty straight forward, once you are in the root git repo directory aka the current repo directory when you will beed to build the core using this command

docker build -t vooplv/webcontainer:core .

or run the build.sh file The core image tag will allow nginx or openresty images to be built since it does need the Web container core image, because of the packages and files.

Made in Latvia :)

webcontainer's People

Contributors

vooperino avatar

Stargazers

Liene 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.