Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
964 B

version: '3.1'
services:
wordpress-fpm:
image: "{{ item.wp_docker_wp_image }}"
restart: "{{ item.wp_docker_restart }}"
container_name: "{{ item.wp_docker_name }}"
ports: "{{ item.wp_docker_wp_port}}"
environment:
WORDPRESS_DB_HOST: "{{ item.wp_docker_db_host }}"
WORDPRESS_DB_USER: "{{ item.wp_docker_db_user }}"
WORDPRESS_DB_PASSWORD: "{{ item.wp_docker_db_pass }}"
WORDPRESS_DB_NAME: "{{ item.wp_docker_db_name }}"
volumes:
- /opt/wp/"{{ item.wp_docker_name }}"/html:/var/www/html
# - conf PHP
# - Backups
# - cron
# - 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:
# -