Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker COMPOSE commands

# docker-compose.yml
version: '2'

services:
  web:
    build: .
    # build from Dockerfile
    context: ./Path
    dockerfile: Dockerfile
    ports:
     - "5000:5000"
    volumes:
     - .:/code
  redis:
    image: redis
Source by dockerlabs.collabnix.com #
 
PREVIOUS NEXT
Tagged: #docker #COMPOSE #commands
ADD COMMENT
Topic
Name
1+8 =