Skip to content

Instantly share code, notes, and snippets.

@linxlad
Created February 20, 2016 22:48
Show Gist options
  • Save linxlad/1b03a210644d0f84c10b to your computer and use it in GitHub Desktop.
Save linxlad/1b03a210644d0f84c10b to your computer and use it in GitHub Desktop.
Phalcon 2 Docker Environment
db:
image: mysql:latest
expose:
- "3306"
ports:
- "3307:3306"
environment:
MYSQL_DATABASE: phalcon-db
MYSQL_USER: root
MYSQL_PASSWORD: root123
MYSQL_ROOT_PASSWORD: admin123
app:
image: linxlad/phalcon2-php-fpm
tty: true
ports:
- "9000:9000"
volumes:
- ./logs/php-fpm:/var/log/php-fpm
- ./http:/srv/http
web:
tty: true
image: linxlad/phalcon2-nginx
ports:
- "80:80"
volumes:
- ./conf/nginx:/etc/nginx/conf.d
- ./logs/nginx:/var/log/nginx
- ./http:/srv/http
environment:
DEVELOPMENT_ENV: development
links:
- app
- db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment