summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorNaoaki Ueda <nao@uedder.com>2022-09-04 18:23:17 +0900
committerNaoaki Ueda <nao@uedder.com>2022-09-04 18:23:17 +0900
commit372de06b4363d38d92c503cc96103b6a879c2820 (patch)
tree8114a32239e3ad98d53284d31fc6ff7f6b2b27d2 /docker-compose.yml
downloadwordpress-dev-372de06b4363d38d92c503cc96103b6a879c2820.tar.gz
wordpress-dev-372de06b4363d38d92c503cc96103b6a879c2820.tar.bz2
wordpress-dev-372de06b4363d38d92c503cc96103b6a879c2820.zip
Initial commit
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..efa1a2a
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,42 @@
+version: '3.3'
+
+services:
+ web:
+ build:
+ context: ./build/web/
+ args:
+ WP_IMAGE_TAG: $WP_IMAGE_TAG
+ restart: always
+ ports:
+ - 8000:80
+ volumes:
+ - ./html:/var/www/html
+ db:
+ image: docker.io/library/mariadb:${MARIADB_VER:-latest}
+ restart: always
+ environment:
+ MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
+ env_file:
+ - .db.env
+ command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --sql_mode=''
+ volumes:
+ - mariadb:/var/lib/mysql
+ mail:
+ build: ./build/mailhog/
+ ports:
+ - 8025:8025
+
+ adminer:
+ image: docker.io/library/adminer
+ restart: always
+ ports:
+ - 8080:8080
+ cli:
+ image: wordpress:${WP_CLI_IMAGE_TAG}
+ profiles:
+ - cli
+ volumes:
+ - ./html:/var/www/html
+
+volumes:
+ mariadb: