-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (58 loc) · 1.58 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (58 loc) · 1.58 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
version: "3"
services:
workspace:
container_name: ngoc_application
restart: always
build:
context: .
dockerfile: ./docker/workspace/build/Dockerfile
volumes:
- ${BACKEND_PATH}:/var/www/project/backend
tty: true
php-fpm:
container_name: ngoc_php-fpm
restart: always
build:
context: .
dockerfile: ./docker/php-fpm/build/Dockerfile
volumes:
- ${BACKEND_PATH}:/var/www/project/backend
expose:
- "9000"
links:
- workspace
nginx:
container_name: ngoc_nginx
restart: always
build:
context: .
dockerfile: ./docker/nginx/build/Dockerfile
volumes:
- ${BACKEND_PATH}:/var/www/project/backend
- ${LOG_NGINX_PATH}:/var/log/nginx
- ${NGINX_SITE_CONFIG_PATH}:/etc/nginx/conf.d
- ${NGINX_MODULES_PATH}:/etc/nginx/modules
ports:
- "81:80"
links:
- php-fpm
mysql:
container_name: ngoc_mysql
restart: always
image: mysql:5.6
volumes:
- ${MYSQL_DATA_PATH}:/var/lib/mysql
- ${LOG_MYSQL_PATH}:/var/log/mysql
expose:
- "3306"
environment:
MYSQL_DATABASE: homestead
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: root
redis:
container_name: ngoc_redis
restart: always
image: redis
expose:
- "6379"