Sign inSign up

adamokon/php72-apache-postgres-silverstripe

By adamokon

•Updated almost 8 years ago

Web server fo running Silverstripe 4 applications.

Image
1

10K+

adamokon/php72-apache-postgres-silverstripe repository overview

Contains:

  • PHP 7.2.6
  • Apache 2.4.25

Setup: In project's root:

  • create directory '.docker', and
  • put there file 'php.ini', with content: date.timezone="Europe/Dublin" (update timezone to any that suits you)
  • (optional) create there subdirectory 'postgres-data', to persist database in filesystem - if you want to run multi container mode, see more below.

⁠Note there is no database server in this image, it is intended to be used with separate database container (multi container setup)

To use multi container, create file: docker-compose.yml, with content:

version: '3'
services:
  web:
    build:
      context: .
      dockerfile: ./Dockerfile
    working_dir: /var/www
    ports:
      - "8080:80"
    volumes:
      - .:/var/www/html
      - ./.docker/php.ini:/usr/local/etc/php/php.ini
    links:
      - db
    depends_on:
      - db

  db:
    image: postgres
    volumes:
      - ./.docker/postgres-data:/var/lib/postgresql/data
    restart: always
    environment:
      - PGSQL_ALLOW_EMPTY_PASSWORD=true

To run environment, just call: 'docker-compose up' from project root. Web server is exposed at localhost port 8080.

Enjoy!

Tag summary

Content type

Image

Digest

Size

192.1 MB

Last updated

almost 8 years ago

docker pull adamokon/php72-apache-postgres-silverstripe