### Start Development Environment Source: https://github.com/sethcottle/littlelink/blob/main/docker/README.md Uses Docker Compose with mounted volumes for live editing during development. ```bash # Start development environment docker compose -f docker/compose.yaml up ``` -------------------------------- ### Run LittleLink with Docker Source: https://github.com/sethcottle/littlelink/blob/main/README.md Use this command to start the LittleLink service using the provided Docker Compose configuration. ```bash docker compose -f docker/compose.yaml up ``` -------------------------------- ### Deploy Production with Docker Compose Source: https://github.com/sethcottle/littlelink/blob/main/docker/README.md Commands to build the production image and start the service using the production compose file. ```bash # Build and tag the image docker build -f docker/Dockerfile -t yourname/littlelink:latest . # Run in production with compose docker compose -f docker/compose.prod.yaml up -d ``` -------------------------------- ### Manage Development Environment with Docker Compose Source: https://github.com/sethcottle/littlelink/blob/main/docker/README.md Use these commands to start, stop, and monitor the LittleLink development container. ```bash # Start in development mode docker compose -f docker/compose.yaml up # Start in background docker compose -f docker/compose.yaml up -d # Stop container docker compose -f docker/compose.yaml down # View logs (including HTTP request logs) docker compose -f docker/compose.yaml logs -f ``` -------------------------------- ### Build and Run Production Container Source: https://github.com/sethcottle/littlelink/blob/main/docker/README.md Commands for building the production image and running it as a background container. ```bash # Build production image docker build -f docker/Dockerfile -t yourname/littlelink:latest . # Run production container docker run -d --name littlelink -p 80:80 yourname/littlelink:latest # View logs for the running container docker logs -f littlelink ``` -------------------------------- ### Deploy a personalized LittleLink instance Source: https://github.com/sethcottle/littlelink/blob/main/docker/README.md Commands to clone the repository, build a custom Docker image, and run the container on a specific port. ```bash # Clone the repository git clone https://github.com/sethcottle/littlelink.git littlelink-john # Customize the content for John cd littlelink-john # Edit index.html with John's links, customize images, etc. # Build a Docker image for John's page docker build -f docker/Dockerfile -t littlelink-john . # Run John's page on port 8080 docker run -d --name john-links -p 8080:80 littlelink-john ``` ```bash # Similarly for another person git clone https://github.com/sethcottle/littlelink.git littlelink-jane cd littlelink-jane # Customize for Jane... # Build and run on a different port docker build -f docker/Dockerfile -t littlelink-jane . docker run -d --name jane-links -p 8081:80 littlelink-jane ``` -------------------------------- ### Deploy LittleLink to VPS Source: https://github.com/sethcottle/littlelink/blob/main/docker/README.md Commands to pull and run the production image, including an option for auto-recovery. ```bash # Pull image docker pull yourname/littlelink:latest # Run container docker run -d --name littlelink -p 80:80 yourname/littlelink:latest # With restart policy for auto-recovery docker run -d --name littlelink --restart unless-stopped -p 80:80 yourname/littlelink:latest ``` -------------------------------- ### Deploy Production with Docker Run Source: https://github.com/sethcottle/littlelink/blob/main/docker/README.md Builds and runs the production image directly using the docker run command. ```bash # Build a production image docker build -f docker/Dockerfile -t yourname/littlelink:latest . # Run in production (no volumes mounted) docker run -d --name littlelink -p 80:80 --restart always yourname/littlelink:latest ``` -------------------------------- ### Run Multiple Instances on One Server Source: https://github.com/sethcottle/littlelink/blob/main/docker/README.md Deploy multiple LittleLink instances by mapping them to different host ports. ```bash # Run first site on port 8080 docker run -d --name site1 -p 8080:80 littlelink-site1 # Run second site on port 8081 docker run -d --name site2 -p 8081:80 littlelink-site2 ``` -------------------------------- ### Customize Content with Docker Volumes Source: https://github.com/sethcottle/littlelink/blob/main/docker/README.md Mounts a local directory to the container to serve custom content in production. ```bash # Prepare a directory with your custom content mkdir -p /path/on/server/custom-content cp -r index.html css/ images/ /path/on/server/custom-content/ # Run with the custom content mounted docker run -d --name littlelink -p 80:80 \ -v /path/on/server/custom-content:/usr/share/nginx/html \ yourname/littlelink:latest ``` -------------------------------- ### Configure Ports for LittleLink Source: https://github.com/sethcottle/littlelink/blob/main/docker/README.md Modify the port mapping for development via YAML or production via command line arguments. ```yaml ports: - "8081:80" # Change 8080 to desired port ``` ```bash docker run -p 8081:80 yourname/littlelink:latest ``` -------------------------------- ### Production Docker Compose Configuration Source: https://github.com/sethcottle/littlelink/blob/main/docker/README.md A production-specific docker-compose file configuration for the LittleLink web service. ```yaml # docker/compose.prod.yaml services: web: image: yourname/littlelink:latest restart: always ports: - "8080:80" # Optional volume for customizable content volumes: - /path/on/server/custom-content:/usr/share/nginx/html ``` -------------------------------- ### Customize Nginx Configuration Source: https://github.com/sethcottle/littlelink/blob/main/docker/README.md Add a custom Nginx configuration file to the Docker image during the build process. ```dockerfile # Example: add custom configuration COPY docker/nginx.conf /etc/nginx/conf.d/default.conf ``` -------------------------------- ### Customize Content with Docker Compose Volumes Source: https://github.com/sethcottle/littlelink/blob/main/docker/README.md Configures volume mounting within a docker-compose file for content customization. ```yaml services: web: image: yourname/littlelink:latest ports: - "80:80" volumes: - /path/on/server/custom-content:/usr/share/nginx/html ``` -------------------------------- ### Add button to index.html Source: https://github.com/sethcottle/littlelink/wiki/Adding-custom-buttons-to-your-own-fork The base HTML structure for a new brand button, including the link and icon elements. ```html Brand Name ``` -------------------------------- ### Configure Contrast Check Trigger Source: https://github.com/sethcottle/littlelink/wiki/Contrast-Check-Action Defines the GitHub Action trigger to execute only when changes are made to the brands.css file during a pull request. ```yaml on: pull_request: paths: - 'css/brands.css' ``` -------------------------------- ### Define a custom brand button in CSS Source: https://github.com/sethcottle/littlelink/wiki/Adding-custom-buttons-to-your-own-fork Use this CSS block structure in brands.css to define the visual properties of a new button. ```css /* Brand Name */ .button.button-default { --button-text: #HEX; --button-background: #HEX; --button-border:1px solid #HEX; } ``` -------------------------------- ### Update button class Source: https://github.com/sethcottle/littlelink/wiki/Adding-custom-buttons-to-your-own-fork The CSS class attribute used to identify the specific brand button. ```html class="button button-brandname" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.