ansible-debops-infrastructure

DebOps and Ansible scripts to manage my infrastructure
git clone git://git.erethon.com/ansible-debops-infrastructure
Log | Files | Refs

main.yml (908B)


      1 ---
      2 
      3 - name: plothopes.com mysql docker
      4   docker_container:
      5     name: plothopes-db
      6     image: mysql:5
      7     state: started
      8     restart_policy: always
      9     pull: true
     10     volumes:
     11       - "{{ docker__volumes_location }}/plothopes-db:/var/lib/mysql"
     12     env:
     13       MYSQL_ROOT_PASSWORD: "{{ plothopes__mysql_root_password }}"
     14 
     15 - name: plothopes.com wordpress docker
     16   docker_container:
     17     name: plothopes-wordpress
     18     image: wordpress
     19     state: started
     20     restart_policy: always
     21     pull: true
     22     ports:
     23       - "{{ plothopes__private_ip }}:{{ plothopes__port }}:80"
     24     volumes:
     25       - "{{ docker__volumes_location }}/plothopes-wp/sparkling:/var/www/html/wp-content/themes/sparkling/"
     26       - "{{ docker__volumes_location }}/plothopes-wp/uploads:/var/www/html/wp-content/uploads/"
     27       - "{{ docker__volumes_location }}/plothopes-wp/plugins:/var/www/html/wp-content/plugins/"
     28     links: plothopes-db:mysql