-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.24 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '3.3'
services:
webserver:
build:
context: ./.docker/nginx-php
container_name: webserver
ports:
- "80:80"
volumes:
- ./storage/logs/nginx/:/var/log/nginx
- ./config/sites/:/etc/nginx/sites-enabled/
- $PROJECT_ROOT:/var/www
webserver71:
build:
context: ./.docker/nginx-php
dockerfile: Dockerfile71
container_name: webserver71
ports:
- "81:80"
volumes:
- ./storage/logs/nginx/:/var/log/nginx
- ./config/sites/:/etc/nginx/sites-enabled/
- $PROJECT_ROOT:/var/www
mysql:
image: mysql:$MYSQL_VERSION
container_name: mysql
ports:
- "3306:3306"
restart: always
environment:
MYSQL_DATABASE: $MYSQL_DATABASE
MYSQL_USER: $MYSQL_USER
MYSQL_PASSWORD: $MYSQL_PASSWORD
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
volumes:
- ./storage/data/mysql:/var/lib/mysql
redis:
image: redis:3.0
container_name: redis
ports:
- "6379:6379"
volumes:
- ./storage/data/redis:/data
playground:
build:
context: ./.docker/playground
container_name: playground
volumes:
- $PROJECT_ROOT:/var/www
- ./storage/composer:/home/homestead/.composer/cache
tty: true