version: "3.7"

services:
  app:
    build: ./
    volumes:
      - .:/var/www
    ports:
      - 9000:9000
  webserver:
    image: nginx:alpine
    restart: unless-stopped
    tty: true
    tmpfs:
      - /var/log/nginx
    volumes:
      - .:/var/www
      - ./srv/nginx/conf.d/:/etc/nginx/conf.d/:cached
    depends_on:
      - app
    ports:
      - 8080:80