Ideas Docker container for basic index.html

fr0sty

Senior Member
Original poster
Staff
Donor
Local time
6:16 PM
Jul 8, 2018
135
32
Australia
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

Junior Member
Local time
9:16 AM
Mar 19, 2019
2
0
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
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads


Maintenance Donations

 

Recommend NewsGroups

Trending