Skip to content

TehesFR/docker-apache-php-prod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About this repo

Prod PHP optimized images with APACHE.

Available tags are:

docker-compose example:

version: '3.3'
services:
  web:
    image: tehes/docker-apache-php-prod/7.3
    ports:
      - "8080:80"
    environment:
      # define servername in apache vhost
      - SERVERNAME=www.mydomain.xyz
      # define the domain name to use for the smtp container
      - EMAIL_DOMAIN=mydomain.xyz
      # define the outgoing default email address, if not changed in the app code
      - OUTGOING_ADDRESS=no-reply@mydomain.xyz
      # folder in /var/www/html where the files will be located
      - DOCUMENTROOT=htdocs
      # SMTP=name of the smtp container (do not change)
      - SMTP=smtp
    volumes:
      - type: bind
        # this directory has to have a folder called "htdocs" with the website content
        source: /data/mydomain.xyz
        # do not change the target folder
        target: /var/www/html
    networks:
      - net
    tty: true

  # smtp container to send emails. please see readme
  smtp:
    build: tehes/docker-smtp
    # environment:
    #   - MAILNAME=outgoing_server_fqdn_name
    #   - SMARTHOST_ADDRESS=smtp_relay_ip_address
    #   - SMARTHOST_PORT=25
    networks:
      - net

networks:
  net:
    driver: overlay

About

Prod PHP optimized images with APACHE.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages