Skip to content

Latest commit

 

History

History
55 lines (49 loc) · 1.82 KB

File metadata and controls

55 lines (49 loc) · 1.82 KB

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