-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (67 loc) · 1.27 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
version: '3'
volumes:
mariadb:
driver: "local"
redis:
driver: "local"
services:
# == Workspace Container ==
workspace:
build:
context: ./workspace
args:
- NODE_VERSION=stable
- TZ=UTC
volumes:
- ../nuswhispers:/var/www/nuswhispers:delegated
expose:
- "9001"
ports:
- "2222:22"
tty: true
links:
- nginx
environment:
- PHP_IDE_CONFIG=serverName=Docker
# == nginx Container ==
nginx:
build: ./nginx
volumes:
- ./logs/nginx:/var/log/nginx
- ../nuswhispers:/var/www/nuswhispers
ports:
- "8080:80"
links:
- php-fpm
# == php-fpm Container ==
php-fpm:
build: ./php-fpm
volumes:
- ../nuswhispers:/var/www/nuswhispers
expose:
- "9000"
- "9001"
links:
- mariadb
- redis
environment:
- PHP_IDE_CONFIG=serverName=Docker
# == MariaDB Container ==
mariadb:
build: ./mariadb
volumes:
- mariadb:/var/lib/mysql
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: homestead
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: root
# == Redis Container ==
redis:
build: ./redis
volumes:
- redis:/data
ports:
- "6379:6379"