-
Notifications
You must be signed in to change notification settings - Fork 103
/
Copy pathdocker-compose.yml
60 lines (56 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
version: '2'
services:
storage:
build: ./docker/development/storage
entrypoint: /bin/true
volumes:
- ./:/var/www/html
network_mode: "bridge"
phpfpm:
build: ./docker/development/php
links:
- mysql:mysql
- redis:redis
expose:
- "8080"
volumes_from:
- storage
environment:
REDIS_PORT: 6379
entrypoint: dockerize -wait tcp://mysql:3306 -timeout 120s
command: php-fpm
network_mode: "bridge"
nginx:
build: ./docker/development/nginx
links:
- phpfpm:phpfpm
ports:
- "8080:80"
volumes:
- ./docker/development/nginx/nginx.conf:/etc/nginx/nginx.conf
volumes_from:
- storage
environment:
VIRTUAL_HOST: hrm.local
network_mode: "bridge"
mysql:
build: ./docker/development/mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: hrm
MYSQL_USER: hrm
MYSQL_PASSWORD: hrm
network_mode: "bridge"
redis:
build: ./docker/development/redis
ports:
- "6379:6379"
volumes:
- ./storage/redis:/data
- ./docker/development/redis/redis.conf:/usr/local/etc/redis/redis.conf
network_mode: "bridge"
entrypoint:
- redis-server
- "--appendonly yes"