-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (42 loc) · 922 Bytes
/
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
version: '3.4'
services:
swoft:
image: swoft/swoft
# for local develop
# command: php -S 127.0.0.1:13300
container_name: swoft-srv
environment:
- APP_ENV=dev
- TIMEZONE=Asia/Shanghai
restart: always
depends_on:
- mysql
- redis
ports:
- "18306:18306"
- "18307:18307"
- "18308:18308"
volumes:
- ./:/var/www/swoft
# - ./:/var/www/swoft:delegated
# - ./:/var/www/swoft:cached
# - ./runtime/ng-conf:/etc/nginx
# - ./runtime/logs:/var/log
mysql:
image: mysql
container_name: mysql-srv
environment:
- MYSQL_ROOT_PASSWORD=123456
ports:
- "13306:3306"
volumes:
- ./runtime/data/mysql:/var/lib/mysql
restart: always
redis:
container_name: redis-srv
image: redis:4-alpine
ports:
- "16379:6379"
sysctls:
net.core.somaxconn: 65535
restart: always