42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
version: '2'
|
|
|
|
services:
|
|
wordpress:
|
|
image: wordpress
|
|
container_name: wp_iade-lyon_wordpress
|
|
restart: always
|
|
ports:
|
|
- 9876:80
|
|
environment:
|
|
WORDPRESS_DB_HOST: db
|
|
WORDPRESS_DB_USER: wp_iade_user
|
|
WORDPRESS_DB_PASSWORD: --__GalereGalere@tutu54
|
|
WORDPRESS_DB_NAME: wp_db
|
|
WORDPRESS_TABLE_PREFIX: wp_iade-lyon_
|
|
volumes:
|
|
- wp_iade-lyon_wordpress_html:/var/www/html/wp-content
|
|
|
|
db:
|
|
image: mariadb:10
|
|
restart: always
|
|
container_name: wp_iade-lyon_madiadb
|
|
environment:
|
|
MYSQL_DATABASE: wp_db
|
|
MYSQL_USER: wp_iade_user
|
|
MYSQL_PASSWORD: --__GalereGalere@tutu54
|
|
MYSQL_ROOT_PASSWORD: Coucoucketchou-+_123789
|
|
volumes:
|
|
- wp_iade-lyon_wordpress_db:/var/lib/mysql
|
|
|
|
volumes:
|
|
- wp_iade-lyon_wordpress_db
|
|
- wp_iade-lyon_wordpress_html
|
|
# Documentation MariaDB
|
|
# https://hub.docker.com/_/mariadb
|
|
#
|
|
# Restore
|
|
# docker exec -i some-mariadb sh -c 'exec mysql -uroot -p"$MYSQL_ROOT_PASSWORD"' < /some/path/on/your/host/all-databases.sql
|
|
#
|
|
# Documentation WordPress
|
|
# https://hub.docker.com/_/wordpress
|