version: '3.3'

services:
  nginx:
    container_name: pixi-editor-nginx
    build: .docker/images/nginx
    links:
      - pixi-editor-service
    ports:
      - "7216:80"
    volumes:
      - ./test-tools:/var/www/test-tools:ro
    networks:
      - pixi-editor-network

  pixi-editor-service:
    container_name: pixi-editor-service
    build: .
    volumes:
      - ./:/var/www
    working_dir: /var/www
    networks:
      pixi-editor-network:
        aliases:
          - nestjs-v1

networks:
  pixi-editor-network:
    external:
      name: pixi-editor-network
