version: '3.5'

services:
  jetlinks_build:
    build: ../
    container_name: 'jetlinks_build'
    volumes:
      - dist:/usr/src/app/dist

  jetlinks_web:
    image: nginx
    ports:
      - 80:80
    container_name: 'jetlinks_web'
    restart: unless-stopped
    volumes:
      - dist:/usr/share/nginx/html:ro
      - ./nginx.conf:/etc/nginx/conf.d/default.conf

volumes:
  dist:
