Business Intelligence

From KB
Revision as of 05:53, 29 January 2024 by Admin (talk | contribs) (Created page with " การเพิ่ม Business Requirement ทดสอบ หัวข้อเรื่อง '''How to add name to container''' '''docker run -dp 8081:80 –name <name_of_container> <image_id>''' '''version: "3.8"''' '''services:''' '''   apache:''' '''       build:''' '''           context: ./apache''' '''       container_name: apache_php_7''' '''       restart: always''' '''       ports:''' '''           - 8081:80''' ''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


การเพิ่ม Business Requirement ทดสอบ หัวข้อเรื่อง

How to add name to container

docker run -dp 8081:80 –name <name_of_container> <image_id>

version: "3.8"

services:

   apache:

       build:

           context: ./apache

       container_name: apache_php_7

       restart: always

       ports:

           - 8081:80

       volumes:

         - ./apache/app:/var/www/html

   app_db:

       image: mariadb:10.7

       container_name: mariadb

       restart: always

       volumes:

           - ./db:/var/lib/mysql

       ports:

           - 3307:3306

       environment:

         MYSQL_ROOT_PASSWORD: secret

         MYSQL_DATABASE: todos

#  Volumn map if dosn't have data will not save to local HDD stroage.

volumes:

 db: