|
|
@ -2,18 +2,30 @@ version: '3.1' |
|
|
|
|
|
|
|
|
|
|
|
services: |
|
|
|
services: |
|
|
|
wordpress-fpm: |
|
|
|
wordpress-fpm: |
|
|
|
image: "{{ item.wp_docker_image }}" |
|
|
|
image: "{{ item.wp_docker_wp_image }}" |
|
|
|
restart: "{{ item.wp_docker_restart }}" |
|
|
|
restart: "{{ item.wp_docker_restart }}" |
|
|
|
container_name: "{{ item.wp_docker_name }}" |
|
|
|
container_name: "{{ item.wp_docker_name }}" |
|
|
|
ports: "{{ item.wp_docker_port}}" |
|
|
|
ports: "{{ item.wp_docker_wp_port}}" |
|
|
|
environment: |
|
|
|
environment: |
|
|
|
WORDPRESS_DB_HOST: "{{ item.wp_docker_db_host }}" |
|
|
|
WORDPRESS_DB_HOST: "{{ item.wp_docker_db_host }}" |
|
|
|
WORDPRESS_DB_USER: "{{ item.wp_docker_db_user }}" |
|
|
|
WORDPRESS_DB_USER: "{{ item.wp_docker_db_user }}" |
|
|
|
WORDPRESS_DB_PASSWORD: "{{ item.wp_docker_db_psw }}" |
|
|
|
WORDPRESS_DB_PASSWORD: "{{ item.wp_docker_db_pass }}" |
|
|
|
WORDPRESS_DB_NAME: "{{ item.wp_docker_db_name }}" |
|
|
|
WORDPRESS_DB_NAME: "{{ item.wp_docker_db_name }}" |
|
|
|
volumes: |
|
|
|
volumes: |
|
|
|
- /opt/wp/"{{ item.wp_docker_name }}"/html:/var/www/html |
|
|
|
- /opt/wp/"{{ item.wp_docker_name }}"/html:/var/www/html |
|
|
|
# conf PHP |
|
|
|
# - conf PHP |
|
|
|
# Backups |
|
|
|
# - Backups |
|
|
|
# cron |
|
|
|
# - cron |
|
|
|
# email |
|
|
|
# - email |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
phpmyadmin: |
|
|
|
|
|
|
|
image: "{{ item.wp_docker_pma_image }}" |
|
|
|
|
|
|
|
restart: "{{ item.wp_docker_restart }}" |
|
|
|
|
|
|
|
container_name: pma_"{{ item.wp_docker_name }}" |
|
|
|
|
|
|
|
ports: "{{ item.wp_docker_pma_port}}" |
|
|
|
|
|
|
|
environment: |
|
|
|
|
|
|
|
- PMA_ARBITRARY=0 |
|
|
|
|
|
|
|
- PMA_HOST: "{{ item.wp_docker_db_host }}" |
|
|
|
|
|
|
|
- PMA_ABSOLUTE_URI: db."{{ item.wp_docker_url }}" |
|
|
|
|
|
|
|
volumes: |
|
|
|
|
|
|
|
# - |
|
|
|