Instantly share code, notes, and snippets.

Embed
What would you like to do?
docker-compose.yml LEMP PHP7.0
web_db:
image: mariadb:latest
restart: always
volumes:
- ./var/mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: @Str0NgP@Ssw0rd
web_front:
image: nginx
restart: always
ports:
- 80:80
- 443:443
log_driver: syslog
links:
- web_fpm
volumes:
- ./www:/var/www/html:rw
- ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./var/log/nginx:/var/log/nginx
- ./etc/letsencrypt:/etc/letsencrypt
- ./etc/nginx/certs/dhparam.pem:/etc/nginx/certs/dhparam.pem
web_fpm:
build: ./PHP-FPM/
restart: always
links:
- web_db:mysql
volumes:
- ./www:/var/www/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment