From a75fae779936154b31cdf84e91d571c7a020a995 Mon Sep 17 00:00:00 2001 From: digitalstudium <40897694+digitalstudium@users.noreply.github.com> Date: Mon, 19 Sep 2022 15:04:08 +0300 Subject: [PATCH] Create stack.yml --- stack.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 stack.yml diff --git a/stack.yml b/stack.yml new file mode 100644 index 0000000..101073a --- /dev/null +++ b/stack.yml @@ -0,0 +1,27 @@ +version: '3.1' +services: + wordpress: + image: wordpress + ports: + - 8080:80 + environment: + WORDPRESS_DB_HOST: db + WORDPRESS_DB_USER: exampleuser + WORDPRESS_DB_PASSWORD: examplepass + WORDPRESS_DB_NAME: exampledb + volumes: + - content:/var/www/html/wp-content + + db: + image: mysql:5.7 + environment: + MYSQL_DATABASE: exampledb + MYSQL_USER: exampleuser + MYSQL_PASSWORD: examplepass + MYSQL_RANDOM_ROOT_PASSWORD: '1' + volumes: + - db:/var/lib/mysql + +volumes: + content: + db: