-
Notifications
You must be signed in to change notification settings - Fork 31
/
docker-compose.yml
46 lines (43 loc) · 1.03 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
version: '3.4'
services:
swoole:
image: "twosee/swoole-coroutine"
ports:
- "9501:9501"
volumes:
- ./src:/app/src:rw
restart: always
depends_on:
- mysql
command: php /app/src/server.php start
mysql:
image: "twosee/swoole-coroutine:mysql"
ports:
- "9502:3306"
volumes:
- ./data/mysql/data:/var/lib/mysql:rw
- ./data/mysql/sock:/var/run/mysqld:rw # remove when windows.
restart: always
environment:
MYSQL_ROOT_PASSWORD: root_password_here
MYSQL_DATABASE: test
MYSQL_USER: php
MYSQL_PASSWORD: php_user_password_here
redis:
image: "twosee/swoole-coroutine:redis"
ports:
- "9503:6379"
volumes:
- ./data/redis/data:/var/lib/redis:rw
sysctls:
net.core.somaxconn: 65535
restart: always
inotify:
image: "twosee/swoole-coroutine:inotify"
volumes:
- ./:/app:rw
restart: always
environment:
APP_ENV: dev # or product
working_dir: /app/util
command: /bin/bash inotify.sh