Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

Following my Basic DockerFile Creation:

WD=/opt/dockerfile
mkdir -p $WD/{setup,conf}
cd $WD/setup
cat << 'EOF' >docker-compose.yaml
version: '3.7'

services:
 dockerfiletest:
    container_name: dockerfiletest
    build: .
    hostname: dockerfiletest
    network_mode: host
    ports:
      - '8742:80'

EOF
chmod +x docker-compose.yaml
docker-compose up
  • No labels