mirror of
https://github.com/containers/podman-compose.git
synced 2024-12-01 20:33:57 +01:00
25 lines
600 B
YAML
25 lines
600 B
YAML
---
|
|
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
|
|
|