version: '3.8'

services:
    server:
        container_name: film_database-server
        image: film_database-server:1.0.0
        build:
            context: ./backend
            dockerfile: Dockerfile
        command: npm run start:dev
        ports:
            - 127.0.0.1:3000:3000
        networks:
            - app-network
        volumes:
            - ./backend:/usr/src/app
            - /usr/src/app/node_modules
        restart: always

networks:
    app-network:
      driver: bridge
