forked from jaouadk/homestead-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
28 lines (27 loc) · 1.03 KB
/
docker-compose.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
25
26
27
28
web:
image: shincoder/homestead
restart: always
ports:
- "8000:80" # web
- "2222:22" # ssh
- "35729:35729" # live reload
- "9876:9876" # karma server
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 )
links:
- mariadb
mariadb:
image: tutum/mariadb
restart: always
ports:
- "33060:3306"
environment:
MARIADB_USER: admin # cannot be changed ( for info. only )
MARIADB_PASS: root
volumes:
- ~/apps/volumes/mysql:/var/lib/mysql # database files