Skip to content

Instantly share code, notes, and snippets.

@efiku
Created September 23, 2016 16:20
Show Gist options
  • Select an option

  • Save efiku/b89bd58ae0b1d823b1f8ad05a7cd890b to your computer and use it in GitHub Desktop.

Select an option

Save efiku/b89bd58ae0b1d823b1f8ad05a7cd890b to your computer and use it in GitHub Desktop.

Revisions

  1. efiku created this gist Sep 23, 2016.
    41 changes: 41 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,41 @@
    panel-zsti-mysql:
    image: mysql:latest
    container_name: panel-zsti-mysql
    ports:
    - "3306:3306"
    environment:
    - MYSQL_ROOT_PASSWORD=root
    - MYSQL_DATABASE=symfony
    - MYSQL_USER=symfony
    - MYSQL_PASSWORD=symfony

    panel-zsti-webserver:
    image: phpdockerio/nginx:latest
    container_name: panel-zsti-webserver
    volumes:
    - .:/var/www/panel-zsti
    - ./phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
    ports:
    - "80:80"
    links:
    - panel-zsti-php-fpm
    - panel-zsti-redis


    panel-zsti-php-fpm:
    build: .
    dockerfile: ./phpdocker/php-fpm/Dockerfile
    container_name: panel-zsti-php-fpm
    volumes:
    - .:/var/www/panel-zsti
    - ./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/7.0/fpm/conf.d/99-overrides.ini
    links:
    - panel-zsti-mysql
    - panel-zsti-redis
    command: bash -c "/usr/sbin/php-fpm7.0 -F -O 2>&1"

    panel-zsti-redis:
    container_name: panel-zsti-redis
    image: redis
    ports:
    - "6379:6379"