Docker 一年生なので、雰囲気で作っています。 構成 /-- docker-compose.yml |- /web | |- /html … web root |- /mysql | |- Dockerfile | |- my.conf | |- /init | |- 1_dd.sql … DB 初期化 |- /nginx | |- nginx.conf | |- /log | |- access.log | |- error.log |- /php | |- Dockerfile | |- php.ini |- /redis docker-compose.yml version: '3' services: nginx: image: nginx:latest ports: - 8080:80 volumes: - ./nginx/nginx.conf:/etc/nginx/conf
![Docker Nginx + PHP + MySQL + Redis な環境作った。 - かもメモ](https://cdn-ak-scissors.b.st-hatena.com/image/square/ff270df037932aad2f574c919425029e18f30d32/height=288;version=1;width=512/https%3A%2F%2Fm.media-amazon.com%2Fimages%2FI%2F41HTCTEZk4L._SL160_.jpg)