49 lines
No EOL
1.4 KiB
Text
Executable file
49 lines
No EOL
1.4 KiB
Text
Executable file
services:
|
|
|
|
# sitename : The domain or subdomain, don't use spaces or caps characters !
|
|
# this version include :
|
|
# phpMyAdmin (no auto login)
|
|
# mariadb (latest) auto config
|
|
# wordpress auto config
|
|
|
|
wordpress-db:
|
|
container_name: wp-${sitename}-bdd
|
|
image: mariadb:latest
|
|
volumes:
|
|
- ${DATA_DIR}/${sitename}/db:/var/lib/mysql
|
|
restart: always
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS}
|
|
MYSQL_DATABASE: wp-${sitename}
|
|
MYSQL_USER: ${DB_USER}
|
|
MYSQL_PASSWORD: ${DB_PASS}
|
|
|
|
wordpress:
|
|
container_name: wp-${sitename}-front
|
|
depends_on:
|
|
- wordpress-db
|
|
image: wordpress:latest
|
|
ports:
|
|
- ${DIFFUSION}:80
|
|
restart: always
|
|
volumes:
|
|
- ${DATA_DIR}/${sitename}/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
|
|
- ${DATA_DIR}/${sitename}/html:/var/www/html
|
|
environment:
|
|
WORDPRESS_DB_HOST: wp-${sitename}-bdd:3306
|
|
WORDPRESS_DB_USER: ${DB_USER}
|
|
WORDPRESS_DB_PASSWORD: ${DB_PASS}
|
|
WORDPRESS_DB_NAME: wp-${sitename}
|
|
|
|
wordpress-pma:
|
|
image: phpmyadmin/phpmyadmin
|
|
container_name: wp-${sitename}-pma
|
|
depends_on:
|
|
- wordpress-db
|
|
environment:
|
|
- PMA_HOST=wp-${sitename}-bdd
|
|
- PMA_PORT=3306
|
|
- PMA_ARBITRARY=1
|
|
ports:
|
|
- ${BDD_MANAGER_PORT}:80
|
|
restart: always |