Giter Site home page Giter Site logo

griefed / docker-template-repo Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 2.0 1.31 MB

Template repo for Java-Gradle, VueJS-Quasar repositories, with Dockerfiles and GitHub/GitLab workflows as well. Feel free to use and or expand on it however you want.

License: Do What The F*ck You Want To Public License

JavaScript 49.74% Vue 40.56% Sass 2.99% HTML 5.45% Java 1.27%
docker java gradle quasar-framework vuejs

docker-template-repo's Introduction

TEMPLATE

Homepage Blog Fleet GitHub DockerHub Discord


Sources, GitHub, GitLab and Mirroring and all that good stuff

Repositories on GitHub are now for issues only. I've set up my own installation of GitLab and moved all my repositories over to Git.Griefed.de. Make sure to check there first for the latest code before opening an issue on GitHub.

For questions, you can always join my Discord server and talk to me there.


TEMPLATE

Docker Pulls Docker Image Size (latest by date) Docker Cloud Build Status Docker Cloud Automated build GitHub Repo stars GitHub forks

This is a description.

TEMPLATE

[[TOC]]


Creates a Container which runs CREATOR_NAME's CREATOR_REPO, with lsiobase/alpine as the base image, as seen on EXAMPLE_WEBSITE_IF_EXISTS.

The lsiobase/alpine image is a custom base image built with Alpine linux and S6 overlay. Using this image allows us to use the same user/group ids in the container as on the host, making file transfers much easier

Deployment

Tags Description
latest Using the latest tag will pull the latest image for linux/amd64,linux/arm/v7,linux/arm64.
develop The latest image of, if existent, the in-dev version of this container. Use at your own risk!

Using GitHub Workflows, images for this container are multi-arch. Simply pulling :latest should retrieve the correct image for your architecture. Images are available for linux/amd64,linux/arm/v7,linux/arm64.

pre-built images

version: "2"
services:
  GRIEFED_DOCKERHUB_REPO:
    container_name: GRIEFED_DOCKERHUB_REPO
    restart: on-failure:3
    image: GRIEFED_DOCKERHUB_REPO
    ports:
      - 8080:PORT
    environment:
      - TZ=Europe/Berlin
      - PUID=1000
      - PGID=1000
    volumes:
      - ./path/to/config:/config
      - ./path/to/data:/data  

cli

GET_FROM_FLEET

Configuration

Configuration Explanation
Restart policy "no", always, on-failure, unless-stopped
TZ Timezone
PUID for UserID
PGID for GroupID
ports The port where the service will be available at.

User / Group Identifiers

When using volumes, permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id user as below:

  $ id username
    uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup)

Building the image yourself

Use the Dockerfile to build the image yourself, in case you want to make any changes to it

docker-compose.yml:

version: "2"
services:
  GRIEFED_DOCKERHUB_REPO:
    container_name: GRIEFED_DOCKERHUB_REPO
    restart: on-failure:3
    build: ./GRIEFED_GITHUB_REPO
    ports:
      - 8080:PORT
    environment:
      - TZ=Europe/Berlin
      - PUID=1000
      - PGID=1000
    volumes:
      - ./path/to/config:/config
      - ./path/to/data:/data  
  1. Clone the repository: git clone GRIEFED_GITHUB_REPO.git ./GRIEFED_GITHUB_REPO
  2. Prepare docker-compose.yml file as seen above
  3. docker-compose up -d --build GRIEFED_DOCKERHUB_REPO
  4. Visit IP.ADDRESS.OF.HOST:8080
  5. ???
  6. Profit!

docker-template-repo's People

Contributors

dependabot[bot] avatar griefed avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

suk-it tanbinh123

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.