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.

32 lines
1003 B

version: '3.1'
services:
wordpress-fpm:
image: "{{ item.wpdocker_wp_image }}"
restart: "{{ item.wpdocker_restart }}"
container_name: "wp_{{ item.wpdocker_name }}"
ports:
- "{{ item.wpdocker_wp_port}}"
environment:
WORDPRESS_DB_HOST: "{{ item.wpdocker_db_host }}"
WORDPRESS_DB_USER: "{{ item.wpdocker_db_user }}"
WORDPRESS_DB_PASSWORD: "{{ item.wpdocker_db_pass }}"
WORDPRESS_DB_NAME: "{{ item.wpdocker_db_name }}"
volumes:
- /opt/wp/{{ item.wpdocker_name }}/html:/var/www/html
# - TODO : conf PHP
# - TODO : Backups
# - TODO : cron
# - TODO : email
phpmyadmin:
image: "{{ item.wpdocker_pma_image }}"
restart: "{{ item.wpdocker_restart }}"
container_name: "pma_{{ item.wpdocker_name }}"
ports:
- "{{ item.wpdocker_pma_port}}"
environment:
PMA_ARBITRARY: 0
PMA_HOST: "{{ item.wpdocker_db_host }}"
PMA_ABSOLUTE_URI: "db.{{ item.wpdocker_url }}"
# volumes:
# - TODO : conf PMA