From 1eae60741891a9606f11d691db5bc86395d3ff1e Mon Sep 17 00:00:00 2001 From: leo <426742@gmail.com> Date: Mon, 12 Aug 2024 15:30:58 +0500 Subject: [PATCH] create --- README.md | 8 ++++++++ docker-compose.yml | 21 +++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 README.md create mode 100644 docker-compose.yml diff --git a/README.md b/README.md new file mode 100644 index 0000000..598c1ce --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +### blog-wp +*docker configuration* + + +Start: `sudo docker start blog-wp` +Start `sudo docker compose -f /data/blog-wp/docker-compose.yml up -d` + +Stop: `sudo docker stop blog-wp` \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..82bb122 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,21 @@ +services: + wordpress: + container_name: blog-wp + image: wordpress:6.6.1-php8.1-apache + restart: always + networks: + - proxynet + env_file: + - /data/secrets/${SERVER_DOMAIN}/${SERVER_DOMAIN}.env + labels: + - "traefik.enable=true" + - "traefik.http.routers.nginx.rule=Host(`${SERVER_DOMAIN}`)" + environment: &env + WORDPRESS_DB_HOST: mariadb + WORDPRESS_DB_USER: ${MARIADB_USER} + WORDPRESS_DB_NAME: ${MARIADB_DB} + volumes: + - /data/appdata/wordpress:/var/www/html +networks: + proxynet: + external: true \ No newline at end of file