Sign inSign up

agomezguru/base7php

By agomezguru

•Updated about 6 years ago

Configured PHP 7.x server for deploy PHP 7.x based projects

Image
0

10K+

agomezguru/base7php repository overview

⁠Quick reference, PHP

Configured PHP 7.x server for deploy PHP 7.x based projects

⁠How to use this image

The intent of this image is always being together use with a NGINX docker container and MySQL/MariaDB/Percona database with a simple Dockerfile (in /host/path/) like this one:

cat <<EOF > docker-compose.yml
version: '3'

volumes:
  my-public:
    external: true
  my-db-data:
    external: true

services:
  web:
    image: agomezguru/nginx
    ports:
      - "$outsidePort:80"
    environment:
      - HOST_NAME=myAppHostName
      - LOG_STATUS=on
      - LOG_NAME=myAppLogName
      - DEPLOYMENT_STAGE=develop
      - PHP_CONTAINER_NAME=php
    volumes:
      - ../someCode:/srv
      - my-public:/srv/public
    networks:
      - $env-network

  php:
    image: agomezguru/base7php:v7.2.32
    volumes:
      - ../someCode:/srv
      - my-public:/srv/public
      - ./php-composer.ini:/usr/local/etc/php/conf.d/custom.ini
    networks:
      - $env-network

  db:
    image: percona:5.6
    volumes:
      - my-db-data:/var/lib/mysql
      - ../percona/masterdb/config:/etc/mysql/conf.d
      - ../dumps:/backups-db
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: $envPassword
    networks:
      - $env-network

# Isolate docker containers arrays between environments.
networks:
  $env-network:
    driver: bridge
EOF
⁠Using environment variables in nginx configuration

This container image doesn't support any environment variables.

⁠License

View php license information⁠ and Composer⁠ for the software contained in this image.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

Tag summary

Content type

Image

Digest

Size

224.4 MB

Last updated

about 6 years ago

docker pull agomezguru/base7php