|
|
|
@ -5,28 +5,26 @@ services: |
|
|
|
|
restart: unless-stopped |
|
|
|
|
container_name: "wp_{{ item.wh_docker_name }}" |
|
|
|
|
ports: |
|
|
|
|
- "{{ item.wh_docker_wp_port}}" |
|
|
|
|
- "{{ item.wh_docker_wp_port}}":80 |
|
|
|
|
environment: |
|
|
|
|
WORDPRESS_DB_HOST: "{{ item.wh_docker_db_host }}" |
|
|
|
|
WORDPRESS_DB_USER: "{{ item.wh_docker_db_user }}" |
|
|
|
|
WORDPRESS_DB_PASSWORD: "{{ item.wh_docker_db_pass }}" |
|
|
|
|
WORDPRESS_DB_NAME: "{{ item.wh_docker_db_name }}" |
|
|
|
|
volumes: |
|
|
|
|
- /opt/wp/{{ item.wh_docker_name }}/html:/var/www/html |
|
|
|
|
# - TODO : conf PHP |
|
|
|
|
# - TODO : Backups |
|
|
|
|
# - TODO : cron |
|
|
|
|
- /opt/wordpress/{{ item.wh_docker_name }}/html:/var/www/html # Wordpress |
|
|
|
|
- /opt/wordpress/{{ item.wh_docker_name }}/custom.ini:/usr/local/etc/php/conf.d/custom.ini # Custom PHP configuration |
|
|
|
|
- /opt/wordpress/{{ item.wh_docker_name }}/custom_cron:/usr/local/etc/php/conf.d/custom_cron # Custom CRON configuration |
|
|
|
|
# - TODO : email |
|
|
|
|
# - TODO : Backups |
|
|
|
|
|
|
|
|
|
phpmyadmin: |
|
|
|
|
image: "{{ item.wh_docker_pma_image }}" |
|
|
|
|
restart: unless-stopped |
|
|
|
|
container_name: "pma_{{ item.wh_docker_name }}" |
|
|
|
|
ports: |
|
|
|
|
- "{{ item.wh_docker_pma_port}}" |
|
|
|
|
- "{{ item.wh_docker_pma_port}}":80 |
|
|
|
|
environment: |
|
|
|
|
PMA_ARBITRARY: 0 |
|
|
|
|
PMA_HOST: "{{ item.wh_docker_db_host }}" |
|
|
|
|
PMA_ABSOLUTE_URI: "db.{{ item.wh_docker_url }}" |
|
|
|
|
# volumes: |
|
|
|
|
# - TODO : conf PMA |
|
|
|
|