Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 524 Bytes

File metadata and controls

25 lines (22 loc) · 524 Bytes

Docker Compose Example Format

version: '3.2'

networks:
  compose-network:
    external:
      name: '<your-docker-network-name>'

services:
  app:
    image: '<your-existing-image>'
    volumes:
      - '</host/path/project/>:</container/path/project>'
    networks:
      compose-network:
        ipv4_address: '<you-docker-network-ip-address ex. 192.168.x.x>'
    ports:
      - '<host-port>:<container-port>'
    tty: true
    stdin_open: true
    restart: 'no'
    container_name: '<your-container-name>'