Ideas - Docker container for basic index.html | PlexGuide.com

Ideas Docker container for basic index.html

  • Stop using Chrome! Download the Brave Browser via >>> [Brave.com]
    It's a forked version of Chrome with native ad-blockers and Google's spyware stripped out! Download for Mac, Windows, Android, and Linux!
Welcome to the PlexGuide.com
Serving the Community since 2016!
Register Now

fr0sty

Veteran
Original poster
Staff
Donor
Jul 8, 2018
184
54
I'm hunting around for a docker container that just displays a basic index.html webpage as a placeholder (manually editable) for maindomain.com
Wordpress is way overkill and the 'robots' hit on it all day. I had a look at forking PGUI but its a bit weird.
Any ideas or suggestions?
 

T-minator

Citizen
Mar 19, 2019
3
1
I have nginx running through PG. Does its job. Created by editing a yml file of another PG container.

Create a file: /opt/mycontainers/web.yml


Code:
---
- hosts: localhost
  gather_facts: false
  tasks:
    # FACTS #######################################################################

    - name: 'Set Known Facts'
      set_fact:
        pgrole: 'web'
        intport: '80'
        extport: '3323'
        image: 'linuxserver/nginx'

    # CORE (MANDATORY) ############################################################
    - name: 'Including cron job'
      include_tasks: '/opt/communityapps/apps/_core.yml'

    # LABELS ######################################################################
    - name: 'Adding Traefik'
      set_fact:
        pg_labels:
          traefik.frontend.auth.forward.address: '{{gauth}}'
          traefik.protocol: 'https'
          traefik.enable: 'true'
          traefik.https.port: '443'
          traefik.https.frontend.entryPoints: 'https'
          traefik.https.frontend.rule: 'Host:{{pgrole}}.{{domain.stdout}},{{tldset}}'

    - name: 'Setting PG Volumes'
      set_fact:
        pg_volumes:
          - '/opt/appdata/web:/config'
          - '/etc/localtime:/etc/localtime:ro'

    - name: 'Setting PG ENV'
      set_fact:
        pg_env:
          PUID: '1000'
          PGID: '1000'

    # MAIN DEPLOYMENT #############################################################
    - name: 'Deploying {{pgrole}}'
      docker_container:
        name: '{{pgrole}}'
        image: '{{image}}'
        pull: yes
        published_ports:
          - '{{ports.stdout}}3323:80'
        volumes: '{{pg_volumes}}'
        env: '{{pg_env}}'
        restart_policy: unless-stopped
        networks:
          - name: plexguide
            aliases:
              - '{{pgrole}}'
        state: started
        labels: '{{pg_labels}}'

##PG-Community

##PG-Community
And after adding it; start the pgblitz interface and deploy through Community Apps [5] [2]

It is set to have the web files in /opt/appdata/web/www and 'use' port 3323
 

Recommend NewsGroups

      Up To a 58% Discount!

Trending