version: '3.5'
services:
  nginx:
    image: ilios/nginx:v3
    environment:
      - FPM_CONTAINERS=php:9000
    depends_on:
      - php
  php:
    image: ilios/fpm:v3
  messages:
    image: ilios/consume-messages:v3

version: '3.5'
volumes:
  public:
services:
  nginx:
    image: ilios/nginx:v3
    environment:
      - FPM_CONTAINERS=php:9000
    depends_on:
      - php
    volumes:
      - public:/var/www/ilios/public:ro
  php:
    image: ilios/fpm:v3
    volumes:
      - public:/var/www/ilios/public
  messages:
    image: ilios/consume-messages:v3

Use a shared volume for public data
Use a shared volume for public data

In order to fill the public directory we have to share this directory
with the PHP end so the cache clearing can pull it from S3
