forked from jaouadk/homestead-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dist.yml
24 lines (23 loc) · 927 Bytes
/
docker-compose.dist.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
web:
image: shincoder/homestead:php7.1
restart: unless-stopped
ports:
- "8000:80" # web
- "2222:22" # ssh
volumes:
- ~/.composer:/home/homestead/.composer # composer caching
- ~/.gitconfig:/home/homestead/.gitconfig # Git configuration ( access alias && config )
- ~/.ssh:/home/homestead/.ssh # Ssh keys for easy deployment inside the container
- ~/apps:/apps # all apps
- ~/apps/volumes/nginx/sites-available:/etc/nginx/sites-available # nginx sites ( in case you recreate the container )
- ~/apps/volumes/nginx/sites-enabled:/etc/nginx/sites-enabled # nginx sites ( in case you recreate the container )
- ~/volumes/nginx/ssl:/etc/nginx/ssl
links:
- mysql
mysql:
image: mysql:5.7
restart: unless-stopped
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- ~/volumes/mysql:/var/lib/mysql