Skip to content

Instantly share code, notes, and snippets.

@abiosoft
Created September 18, 2016 16:16
Show Gist options
  • Select an option

  • Save abiosoft/92fa7575d255ef49ec614485e78ed3c5 to your computer and use it in GitHub Desktop.

Select an option

Save abiosoft/92fa7575d255ef49ec614485e78ed3c5 to your computer and use it in GitHub Desktop.

Revisions

  1. abiosoft revised this gist Sep 18, 2016. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions php.ini
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    memory_limit = 32M
    upload_max_filesize = 24M
    post_max_size = 32M
  2. abiosoft created this gist Sep 18, 2016.
    10 changes: 10 additions & 0 deletions Caddyfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    :80
    root /usr/src/wordpress
    gzip
    fastcgi / wordpress:9000 php
    rewrite {
    if {path} not_match ^\/wp-admin
    to {path} {path}/ /index.php?_url={uri}
    }
    log stdout
    errors stderr
    40 changes: 40 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,40 @@
    version: '2'
    services:
    db:
    image: mysql
    container_name: mysql
    volumes:
    - "./.data:/var/lib/mysql"
    restart: always
    environment:
    MYSQL_ROOT_PASSWORD: wordpress
    MYSQL_DATABASE: wordpress
    MYSQL_USER: wordpress
    MYSQL_PASSWORD: wordpress
    wordpress:
    depends_on:
    - db
    image: wordpress:fpm
    container_name: wordpress
    links:
    - db
    restart: always
    environment:
    WORDPRESS_DB_HOST: db:3306
    WORDPRESS_DB_PASSWORD: wordpress
    volumes:
    - "/usr/src/wordpress"
    - "./php.ini:/usr/local/etc/php/conf.d/custom.ini"
    server:
    image: abiosoft/caddy
    container_name: caddy
    restart: always
    ports:
    - "80:80"
    - "443:443"
    links:
    - wordpress
    volumes:
    - "./Caddyfile:/etc/Caddyfile"
    volumes_from:
    - wordpress