docker-compose.yml 1.02 KB
Newer Older
Diego's avatar
Diego committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
version: '2'
services:
  mysql:
    image: mariadb
    environment:
      MYSQL_DATABASE: ${mysql_database}
      MYSQL_PASSWORD: ${mysql_password}
      MYSQL_ROOT_PASSWORD: ${mysql_root_password}
      MYSQL_USER: ${mysql_user}
      TERM: xterm
    volumes:
    - ${wordpress_volume_path}/mysql:/var/lib/mysql
  web:
    image: hacklab/wordpress
    environment:
      WORDPRESS_DB_NAME: ${mysql_database}
      WORDPRESS_DB_PASSWORD: ${mysql_database}
      WORDPRESS_DB_USER: ${mysql_user}
      WORDPRESS_TABLE_PREFIX: ${wordpress_table_prefix}
    volumes:
    - ${wordpress_volume_path}/wp-content/uploads:/var/www/html/wp-content/uploads
    - ${wordpress_volume_path}/wp-content/plugins:/var/www/html/wp-content/plugins
    links:
    - mysql
    labels:
Diego's avatar
Diego committed
26
      rap.host: ${rap_host}
Diego's avatar
Diego committed
27 28 29 30
      rap.le_email: ${le_email}
      rap.le_host:  ${le_host}
      rap.client_max_body_size: 2048m
      io.rancher.container.pull_image: always
Diego's avatar
Diego committed
31 32
      io.rancher.scheduler.affinity:host_label: ${host_label}
      io.rancher.container.pull_image: always