forked from prbdias/docker-lumen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
71 lines (62 loc) · 1.16 KB
/
docker-compose.yaml
File metadata and controls
71 lines (62 loc) · 1.16 KB
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
version: '3'
services:
### PHP-FPM Container
php-fpm:
build: ./build/php-fpm
volumes:
- ./src:/var/www
expose:
- "9000"
links:
- mysql
- redis
### NGINX Container
nginx:
build: ./build/nginx
volumes:
- ./logs/nginx/:/var/log/nginx
- ./src:/var/www
ports:
- "9080:80"
- "9443:443"
links:
- php-fpm
### MySQL Container
mysql:
build: ./build/mysql
volumes:
- /var/lib/mysql
ports:
- "9306:3306"
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASS}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS}
### Redis Container
redis:
image: redis
expose:
- "6379"
### Application Code Container
application:
build: ./build/application
### Workspace Utilities Container
workspace:
build: ./build/workspace
volumes:
- ./src:/var/www
- ./logs/workspace:/var/www/storage/logs
links:
- mysql
- redis
- mail
tty: true
### MAILHOG
mail:
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"
volumes:
src: