Business Intelligence: Difference between revisions
(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''' ''...") |
No edit summary |
||
Line 55: | Line 55: | ||
'''volumes:''' | '''volumes:''' | ||
''' db:''' | ''' db: Test blach''' |
Latest revision as of 11:07, 30 January 2024
การเพิ่ม 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: Test blach