-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yaml
61 lines (54 loc) · 1009 Bytes
/
docker-compose.yaml
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
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:
- "80:80"
- "443:443"
links:
- php-fpm
### MySQL Container
mysql:
build: ./build/mysql
volumes:
- /var/lib/mysql
expose:
- "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
links:
- mysql
- redis
tty: true
volumes:
src: