diff options
| author | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-06-18 23:19:10 +0900 |
|---|---|---|
| committer | Yasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com> | 2026-06-18 23:19:10 +0900 |
| commit | 5bc1e63756cae6974430f1e6cf1a4d5e88f5b9cc (patch) | |
| tree | 46ab1a541403d680fe1719da941d7702159fd453 /docker-compose.yml | |
Initial commit
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6aeb2f4 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,36 @@ +services: + db: + image: mysql:8.0 + container_name: wp_db + restart: unless-stopped + environment: + MYSQL_ROOT_PASSWORD: rootpass + MYSQL_DATABASE: wordpress + MYSQL_USER: wp_user + MYSQL_PASSWORD: wp_pass + volumes: + - db_data:/var/lib/mysql + ports: + - "3306:3306" + + wordpress: + image: wordpress:latest + container_name: wp_app + restart: unless-stopped + depends_on: + - db + environment: + WORDPRESS_DB_HOST: db:3306 + WORDPRESS_DB_USER: wp_user + WORDPRESS_DB_PASSWORD: wp_pass + WORDPRESS_DB_NAME: wordpress + volumes: + - wp_data:/var/www/html + # UpdraftPlus のバックアップを配置する場所 + - ./backups:/backups + ports: + - "8080:80" + +volumes: + db_data: + wp_data: |
