-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
105 lines (97 loc) · 2.44 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
###############################################
### DO NOT CHANGE THIS FILE DIRECTLY ###
### USE docker-compose.override.yml instead ###
###############################################
# CONFIG
version: '2'
# VOLUMES
volumes:
# MYSQL
emtudo-skeleton-mysql-data:
driver: local
# REDIS
emtudo-skeleton-redis-data:
driver: local
# ~/.config
emtudo-skeleton-temp-config:
driver: local
# ~/.local
emtudo-skeleton-temp-local:
driver: local
# ~/.cache
emtudo-skeleton-temp-cache:
driver: local
# ~/.composer
emtudo-skeleton-temp-composer:
driver: local
# SERVICES
services:
# APP
app:
image: ambientum/php:7.2-nginx
container_name: emtudo-skeleton-app
environment:
- XDEBUG_ENABLED=true
- PHP_IDE_CONFIG=serverName=ambientum
volumes:
- .:/var/www/app
- emtudo-skeleton-temp-config:/home/ambientum/.config
- emtudo-skeleton-temp-cache:/home/ambientum/.cache
- emtudo-skeleton-temp-local:/home/ambientum/.local
- emtudo-skeleton-temp-composer:/home/ambientum/.composer
links:
- mysql
- cache
- mailcatcher
ports:
- 8000:8080
- 8443:8083
# vue:
# image: ambientum/node:9
# container_name: emtudo-skeleton-vue-dev
# command: bash -c "npm install; npm run watch"
# volumes:
# - .:/var/www/app
# QUEUE
queue:
image: ambientum/php:7.2
container_name: emtudo-skeleton-queue
command: php artisan queue:listen --tries=3
volumes:
- .:/var/www/app
- emtudo-skeleton-temp-config:/home/ambientum/.config
- emtudo-skeleton-temp-cache:/home/ambientum/.cache
- emtudo-skeleton-temp-local:/home/ambientum/.local
- emtudo-skeleton-temp-composer:/home/ambientum/.composer
links:
- mysql
- cache
- mailcatcher
# MAILCATCHER
mailcatcher:
image: ambientum/mailcatcher:latest
container_name: emtudo-skeleton-mailcatcher
ports:
- 1025:1025
- 1080:1080
# MYSQL
mysql:
image: ambientum/mysql:5.7
container_name: emtudo-skeleton-mysql
volumes:
- emtudo-skeleton-mysql-data:/var/lib/mysql
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=emtudo
- MYSQL_DATABASE=skeleton
- MYSQL_USER=emtudo
- MYSQL_PASSWORD=emtudo
cache:
image: redis:4.0
container_name: emtudo-skeleton-redis
command: --appendonly yes
volumes:
- emtudo-skeleton-redis-data:/data
ports:
- 6379