Skip to content

Commit

Permalink
Create docker configuration for local development
Browse files Browse the repository at this point in the history
  • Loading branch information
petrkucerak committed Dec 6, 2024
1 parent c06ee66 commit 495047c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ Wordpress theme of the STC blog [studuj.digital](https://studuj.digital/).
## About project
Based on [STCblog template](https://github.com/andreondra/stcblog).

## Local development

```sh
docker-compose -p stcblog up --build # Build and run dev version in docker image
```

## Features
### Responsive
![responsivity showcase](docs/img/readme1.gif)
Expand Down
28 changes: 28 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '3.8'
services:
wordpress:
image: wordpress:6.7.1
container_name: wordpress-dev
ports:
- "8080:80"
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
volumes:
- ./:/var/www/html/wp-content/themes/current-theme

db:
image: mysql:8.0
container_name: wordpress-db
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- db:/var/lib/mysql

volumes:
db:

0 comments on commit 495047c

Please sign in to comment.