Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker compose keep container open

version: "3"

services:
  service:
    container_name: "project_name"
    build: .
    ports:
      - "3000:3000"
    command: tail -f /etc/hostname
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #docker #compose #container #open
ADD COMMENT
Topic
Name
3+3 =