From a206493f3b3460e21353cea5477eebbcc10c0301 Mon Sep 17 00:00:00 2001 From: _Tradam Date: Tue, 9 Sep 2025 16:18:52 +0900 Subject: init --- docker-compose.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docker-compose.yml (limited to 'docker-compose.yml') diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e758950 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,37 @@ + +services: + nginx: + build: + context: . + dockerfile: nginx.dockerfile + depends_on: + - php + - mysql + ports: + - 80:80 + - 443:443 + volumes: + - ./wordpress:/var/www/html + + mysql: + image: mysql:latest + environment: + MYSQL_DATABASE: wp + MYSQL_USER: wp + MYSQL_PASSWORD: secret + MYSQL_ROOT_PASSWORD: secret + + php: + build: + context: . + dockerfile: php.dockerfile + volumes: + - ./wordpress:/var/www/html + + wp: + build: + context: . + dockerfile: php.dockerfile + volumes: + - ./wordpress:/var/www/html + entrypoint: ['wp', '--allow-root'] -- cgit v1.2.3