-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (54 loc) · 1.4 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
version: '2'
### 网络模式 ###
networks:
frontend:
driver: "bridge"
backend:
driver: "bridge"
### 目录空间及容器 ###
services:
#工作路径
applications:
image: coppit/inotify-command
volumes:
- ${WORKSPACE}:/var/www
#构建php71
php71:
build:
context: ./php-fpm
args:
- INSTALL_SYSTOOLS=${INSTALL_SYSTOOLS}
- INSTALL_PHP=${PHP_FPM_INSTALL_PHP}
- INSTALL_LIBZIP=${PHP_FPM_INSTALL_LIBZIP}
- INSTALL_HIREDIS=${PHP_FPM_INSTALL_HIREDIS}
- INSTALL_COMPOSER=${PHP_FPM_INSTALL_COMPOSER}
- INSTALL_INOTIFY=${PHP_FPM_INSTALL_INOTIFY}
- INSTALL_ZIPARCHIVE=${PHP_FPM_INSTALL_ZIPARCHIVE}
- INSTALL_PHPREDIS=${PHP_FPM_INSTALL_PHPREDIS}
- INSTALL_SWOOLE=${PHP_FPM_INSTALL_SWOOLE}
dockerfile: "Dockerfile-${PHP_VERSION}"
volumes_from:
- applications
extra_hosts:
- "dockerhost:${DOCKER_HOST_IP}"
ports:
- "${SD_HTTP_FOREIGN_PORT}:9081"
- "7202:6202"
- "7203:6203"
- "7204:6204"
tty: true
privileged: true
links:
- redis
networks:
- frontend
- backend
#构建redis
redis:
build: ./redis
volumes:
- ${DATA_SAVE_PATH}/redis:/data
ports:
- "${SD_REDIS}:6379"
networks:
- backend