diff options
| author | _Tradam <[email protected]> | 2025-09-09 16:18:52 +0900 |
|---|---|---|
| committer | _Tradam <[email protected]> | 2025-09-09 16:18:52 +0900 |
| commit | a206493f3b3460e21353cea5477eebbcc10c0301 (patch) | |
| tree | 4c1e9afefded5e1c8524da82f83bdc447858dd9f /docker-compose.yml | |
| download | wordpress-docker-a206493f3b3460e21353cea5477eebbcc10c0301.tar.gz wordpress-docker-a206493f3b3460e21353cea5477eebbcc10c0301.zip | |
init
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 37 |
1 files changed, 37 insertions, 0 deletions
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'] |
