File tree Expand file tree Collapse file tree 2 files changed +86
-0
lines changed
Expand file tree Collapse file tree 2 files changed +86
-0
lines changed Original file line number Diff line number Diff line change 1+ # Docker-Compose configuration file.
2+
3+ version : ' 2'
4+
5+ services :
6+ # dev server with live-reload
7+ dev :
8+ image : ambientum/node:6
9+ container_name : starter-web-dev
10+ command : yarn run dev
11+ volumes :
12+ - .:/var/www/app
13+ ports :
14+ - 80:8080
15+
16+ # NGINX preview of 'npm run build' contents
17+ preview :
18+ image : nginx:stable-alpine
19+ container_name : starter-web-preview
20+ volumes :
21+ - ./dist:/usr/share/nginx/html
22+ ports :
23+ - 9000:80
Original file line number Diff line number Diff line change 1+ # Docker-Compose configuration file.
2+
3+ # v2 syntax
4+ version : ' 2'
5+
6+ # Named volumes
7+ volumes :
8+ # MySQL Data
9+ starter-mysql-data :
10+ driver : local
11+
12+ # Redis Data
13+ starter-redis-data :
14+ driver : local
15+
16+ services :
17+
18+ # MySQL (5.7)
19+ mysql :
20+ image : ambientum/mysql:5.7
21+ container_name : starter-api-mysql
22+ volumes :
23+ - starter-mysql-data:/var/lib/mysql
24+ ports :
25+ - " 3306:3306"
26+ environment :
27+ - MYSQL_ROOT_PASSWORD=starter
28+ - MYSQL_DATABASE=starter
29+ - MYSQL_USER=starter
30+ - MYSQL_PASSWORD=starter
31+
32+ # Redis
33+ cache :
34+ image : ambientum/redis:3.2
35+ container_name : starter-api-redis
36+ command : --appendonly yes
37+ volumes :
38+ - starter-redis-data:/data
39+ ports :
40+ - " 6379:6379"
41+
42+ # PHP (with Caddy) - Web Application (API)
43+ web :
44+ image : ambientum/php:7.0-caddy
45+ container_name : starter-api-web
46+ volumes :
47+ - .:/var/www/app
48+ ports :
49+ - " 8000:8080"
50+ links :
51+ - mysql
52+ - cache
53+
54+ # Queues
55+ queue :
56+ image : ambientum/php:7.0
57+ container_name : starter-api-queue
58+ command : php artisan queue:listen
59+ volumes :
60+ - .:/var/www/app
61+ links :
62+ - mysql
63+ - cache
You can’t perform that action at this time.
0 commit comments