version: '3'

services:
  nginx:
    image: nginx
    ports:
      - 80:80
    volumes:
      - ./nginx-dev.conf:/etc/nginx/nginx.conf
    depends_on:
      - client
  client:
    ports:
      - 3000:3000
    build:
      context: ../..
      dockerfile: ./sites/client/Dockerfile.dev
    volumes:
      - ../../:/app
    env_file:
      - .env
    working_dir: /app
    command: 'yarn dev:client'
    restart: always
