Skip to content

Instantly share code, notes, and snippets.

@sl0ki
Created January 18, 2017 16:17
Show Gist options
  • Save sl0ki/4b1747781fc51f9269c1e5ee3d8f415c to your computer and use it in GitHub Desktop.
Save sl0ki/4b1747781fc51f9269c1e5ee3d8f415c to your computer and use it in GitHub Desktop.
LRMP Docker stack
version: "2"
volumes:
web-data:
mysql-data:
services:
nginx:
image: nginx
restart: always
working_dir: /www
volumes:
- web-data:/www
- ./nginx/config:/etc/nginx/conf.d
- ./nginx/patterns:/etc/nginx/patterns
- ./nginx/ssl:/etc/nginx/ssl
ports:
- "80:80"
# - "443:443"
# php7:
# build:
# context: ./php7
# volumes:
# - web-data:/www
# working_dir: /www
php5:
build:
context: ./php5
volumes:
- web-data:/www
working_dir: /www
mysql:
image: mysql
volumes:
- mysql-data:/var/lib/mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
ports:
- "3306:3306"
fssync:
image: cweagans/bg-sync
working_dir: /shared
volumes:
- ./www:/source
- web-data:/shared
environment:
- SYNC_DESTINATION=/shared
- SYNC_MAX_INOTIFY_WATCHES=40000
- SYNC_VERBOSE=1
privileged: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment