Skip to content

Latest commit

 

History

History
38 lines (34 loc) · 956 Bytes

DOCKER-COMPOSE.md

File metadata and controls

38 lines (34 loc) · 956 Bytes

Docker Compose Documentation

Refer to official Docker compose documentation

Explained

services:

  # service name
  app:
    # Specify a custom container name
    container_name: vue-app
    # Configuration options that are applied at build time.
    build:
      # Path to a directory containing a Dockerfile
      context: app
      # Alternate Dockerfile.
      dockerfile: Dockerfile
    # What container ports are exposed?
    ports:
      # HOST:CONTAINER
      - "8000:8080"
    networks:
      # Custom Network
      serveriry:
        # Static (unchangeable) IPv4 Address
        ipv4_address: 10.10.0.2
    # Express dependency between services.
    depends_on:
      - directus
    # Add environment variables from a file.
    env_file:
      - ./.env.dev.db
    # Mount host paths or named volumes, specified as sub-options to a service.
    volumes:
      - ./uploads:/directus/uploads