commit 1eae60741891a9606f11d691db5bc86395d3ff1e Author: leo <426742@gmail.com> Date: Mon Aug 12 15:30:58 2024 +0500 create 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