Skip to content

Instantly share code, notes, and snippets.

@efiku
Created September 23, 2016 16:20
Show Gist options
  • Save efiku/b89bd58ae0b1d823b1f8ad05a7cd890b to your computer and use it in GitHub Desktop.
Save efiku/b89bd58ae0b1d823b1f8ad05a7cd890b to your computer and use it in GitHub Desktop.
My docker-compose
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment