14 Home
Nick Yeoman edited this page 2023-12-17 16:58:49 -08:00

Dockerhub: https://hub.docker.com/r/4lights/phpcontainer

Supported Software

Version 3 is now php 8.3, currently only supports Joomla.

  1. Joomla

How to build

You might have to login with your api key.

sudo docker buildx build --no-cache -t 4lights/phpcontainer:v4 -t 4lights/phpcontainer:latest --load .
sudo docker login
sudo docker push 4lights/phpcontainer:v4
sudo docker push 4lights/phpcontainer:latest

Sample Docker Compose

---
version: "3.3"

volumes:
  db:

networks:
  default:
    external:
      name: ${NETWORKNAME}

services:

  db:
    image: mariadb:latest
    restart: always
    container_name: "${DBHOST}"
    environment:
      MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
      MYSQL_PASSWORD: ${DBPASSWORD}
      MYSQL_DATABASE: ${DB}
      MYSQL_USER: ${DBUSER}
    volumes:
      - "db:/var/lib/mysql"

  php-app:
    container_name: "${DOCKERNAME}"
    image: "4lights/phpcontainer:latest"
    restart: always
    volumes:
      - "./:/data"
    ports:
      - "${DOCKERPORT}:80"

env file:

NETWORKNAME=PROXY_NETWORK
DBHOST=DB_HOST_NAME
MYSQL_ROOT_PASSWORD=ChangeMe
DBPASSWORD=ChangeMeAlso
DB=DATABASENAME
DBUSER=DBUSERNAME
DOCKERNAME=Container_name
DOCKERPORT=8000

Notes And References

DockerHub PHP Base

https://hub.docker.com/_/php

IMAP features

References:

Joomla base used

f9a16bcbd8/4.3/php8.1/apache/Dockerfile