version: '2'
services:
nginx:
image: shippingdocker/nginx:1.2
ports:
- "80:80"
volumes:
- .:/var/www/html
networks:
- appnet
php:
image: shippingdocker/php:1.2
volumes:
- .:/var/www/html
networks:
- appnet
redis:
image: redis:alpine
networks:
- appnet
db:
image: mysql:latest
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_USER: dev
MYSQL_PASSWORD: 123456
MYSQL_DATABASE: myapp
networks:
- appnet
mail:
image: mailhog/mailhog:latest
ports:
- "9025:8025"
networks:
- appnet
networks:
appnet:
driver: "bridge"
volumes:
data:
driver: "local"
LEMP is a variation of the ubiquitous LAMP stack used for developing and deploying web applications. Traditionally, LAMP consists of Linux, Apache, MySQL, and PHP. Due to its modular nature, the components can easily be swapped out. With LEMP, Apache is replaced with the lightweight yet powerful Nginx.

Slides used for talk to Buenos Aires NodeJS Meetup.
Covers Node library BookshelfJS, which I have used for 4+ years.
Bookshelf-demo repo will be partnered w…
base datos mysql copy duplicate database
mysqldump -h SERVER -u USER -pPASSWORD db1 | mysql -h SERVER -u user -pPASSWORD db2
registro columna row duplicado duplicate
SELECT a.id, a.title, a.image, a.link, a.date
FROM ps_aps a
INNER JOIN ps_aps b
ON a.date = b.date
AND a.link LIKE 'https://%'
WHERE a.id <> b.id
ORDER BY a.date