mirror of
https://github.com/containers/podman-compose.git
synced 2024-12-25 16:18:55 +01:00
example wordpress
This commit is contained in:
parent
c55cd67bd2
commit
a2defdd06a
24
examples/wordpress/docker-compose.yaml
Normal file
24
examples/wordpress/docker-compose.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
volumes:
|
||||
db_data:
|
||||
services:
|
||||
wordpress:
|
||||
image: docker.io/library/wordpress:latest
|
||||
ports:
|
||||
- 8080:80
|
||||
environment:
|
||||
- WORDPRESS_DB_HOST=db
|
||||
- WORDPRESS_DB_USER=wordpress
|
||||
- WORDPRESS_DB_PASSWORD=password
|
||||
- WORDPRESS_DB_NAME=wordpress
|
||||
db:
|
||||
image: docker.io/library/mariadb:10.6.4-focal
|
||||
command: '--default-authentication-plugin=mysql_native_password'
|
||||
volumes:
|
||||
- db_data:/var/lib/mysql
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=somewordpress
|
||||
- MYSQL_DATABASE=wordpress
|
||||
- MYSQL_USER=wordpress
|
||||
- MYSQL_PASSWORD=password
|
||||
|
Loading…
Reference in New Issue
Block a user