Skip to content

Instantly share code, notes, and snippets.

@valentin2105
Created April 11, 2016 10:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valentin2105/2223ef8f7b3d002cc5815556e03660e1 to your computer and use it in GitHub Desktop.
Save valentin2105/2223ef8f7b3d002cc5815556e03660e1 to your computer and use it in GitHub Desktop.
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