You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Llewellyn van der Merwe 70f0fa733c
first commit
2 weeks ago
9.3 first commit 2 weeks ago
conf first commit 2 weeks ago
.editorconfig first commit 2 weeks ago
.gitignore first commit 2 weeks ago
Dockerfile.template first commit 2 weeks ago
LICENSE first commit 2 weeks ago
README.md first commit 2 weeks ago
apply-templates.sh first commit 2 weeks ago
docker-entrypoint.sh first commit 2 weeks ago
maintainers.json first commit 2 weeks ago
maintainers_hopes.json first commit 2 weeks ago
update.sh first commit 2 weeks ago
versions-helper.json first commit 2 weeks ago
versions.json first commit 2 weeks ago
versions.sh first commit 2 weeks ago

README.md

RosarioSIS

To run these ready build images

Create a file called docker-compose.yml with the following values:

version: '2'

# THIS IS A LOCAL SETUP IF YOU WANT TO USE ON PUBLIC SERVER REMOVE COMMENTS WHERE NEEDED
services:
  postgresql_plan:
    image: postgres:10.15
    container_name: postgresql_plan
    restart: unless-stopped
    environment:
      POSTGRES_USER: ${PLAN_DB_USER}
      POSTGRES_PASSWORD: ${PLAN_DB_PASS}
      POSTGRES_DB: ${PLAN_DB}
    volumes:
      - "${PROJECT_PATH}/plan/db:/var/lib/postgresql/data"
    networks:
      - traefik

  rosariosis_plan:
    image: llewellyn/rosariosis:9.3
    container_name: rosariosis_plan
    restart: unless-stopped
    environment:
      APACHE_RUN_USER: ${PLAN_PUID}
      APACHE_RUN_GROUP: ${PLAN_PGID}
      POSTGRES_HOST: ${PLAN_DB_HOST}
      POSTGRES_USER: ${PLAN_DB_USER}
      POSTGRES_PASSWORD: ${PLAN_DB_PASS}
      POSTGRES_DB: ${PLAN_DB}
      POSTGRES_PORT: ${PLAN_DB_PORT}
      ROSARIOSIS_YEAR: ${PLAN_RO_YEAR}
      ROSARIOSIS_LANG: ${PLAN_RO_LANG}
      ROSARIOSIS_ADMIN_EMAIL: ${PLAN_RO_EMAIL}
    depends_on:
      - postgresql_plan
    volumes:
      - "${PROJECT_PATH}/plan/joomla:/var/www/html"
      - "${PROJECT_PATH}/plan/php.ini:/var/www/html/php.ini"
    networks:
      - traefik
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.rosariosis_plan.rule=Host(`plan.school.method`)"
#      - "traefik.http.routers.rosariosis_plan.entrypoints=web"
#      - "traefik.http.routers.rosariosis_plan.tls.certresolver=letresolver"
#      - "traefik.http.routers.rosariosis_plan.service=rosariosis_plan"
#      - "traefik.http.services.rosariosis_plan.loadbalancer.server.port=80"

  traefik:
    container_name: traefik
    image: "traefik:latest"
    command:
#            - --entrypoints.web.address=:80
#            - --entrypoints.websecure.address=:443
#            - --api.dashboard=true
#            - --api.insecure=true
      - --providers.docker
#          - --log.level=INFO
#          - --certificatesresolvers.letresolver.acme.httpchallenge=true
#          - --certificatesresolvers.letresolver.acme.keytype=RSA4096
#          - --certificatesresolvers.letresolver.acme.email=user@demo.com
#          - --certificatesresolvers.letresolver.acme.storage=/acme.json
#          - --certificatesresolvers.letresolver.acme.httpchallenge.entrypoint=web
#          - --providers.file.directory=/conf
#          - --providers.file.watch=true
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
#     - "8080:8080"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
#            - "${PROJECT_PATH}/traefik/conf:/conf"
#            - "${PROJECT_PATH}/traefik/acme.json:/acme.json"
#            - "${PROJECT_PATH}/traefik/errors:/errors"
#          labels:
#       settings for all containers if we run on public server
#            - "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)"
#            - "traefik.http.routers.http-catchall.entrypoints=web"
#            - "traefik.http.routers.http-catchall.middlewares=redirect-to-me"
#            - "traefik.http.middlewares.redirect-to-me.redirectscheme.scheme=http"
    networks:
      - traefik

networks:
  traefik:
    external:
      name: traefik_webgateway

Create a file called .env with your own values:

PROJECT_PATH="/home/USERNAME/Projects"
PLAN_PUID="#1000"
PLAN_PGID="#1000"
PLAN_DB="vdm_io"
PLAN_DB_USER="vdm_user"
PLAN_DB_PORT="5432"
PLAN_DB_HOST="postgresql_plan"
PLAN_DB_PASS="vGhdeHjxi2QsyKLJ9yov"
PLAN_RO_YEAR="2022"
PLAN_RO_LANG="en_US"
PLAN_RO_EMAIL="your@email.com"

To start these containers:

$ docker-compse --env-file path/to/.env -file path/to/docker-compose.yml up -d

Free Software License

@copyright  Copyright (C) 2021 Llewellyn van der Merwe. All rights reserved.
@license    GNU General Public License version 2; see LICENSE