LAMP stack ด้วย docker-compose
ตัวไฟล์ docker-compose.yml เป็นดังนี้
version: '3.1'
services:
web:
image: apache_phpmyadmin
restart: always
ports:
- 80:80
# container_name: apache
stdin_open: true
tty: true
adminer:
image: adminer
restart: always
ports:
- 8080:8080
db:
image: mysql:8.0.32
restart: always
environment:
MYSQL_ROOT_PASSWORD: example