-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (39 loc) · 1.3 KB
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (39 loc) · 1.3 KB
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
services:
server:
image: deminy/swoole-by-examples:server-6.2
environment:
# ROOT_DIR limits what the autoreload script watches; without it, any PHP file changed under /var/www
# (e.g., Composer writing into ./vendor) would restart all the Supervisord-managed servers.
ROOT_DIR: /var/www/examples
AUTORELOAD_PROGRAMS: "apcu-caching ddos-protection http1 http1-integrated http1-sse http2 interruptible-sleep keepalive mixed-protocols-same-port mixed-protocols-per-port mqtt multiple-ports pool-msgqueue pool-tcp-socket pool-unix-socket proxy redis rock-paper-scissors tcp-event-driven tcp-coroutine-style udp websocket websocket-integrated"
DISABLE_DEFAULT_SERVER: 1
ports:
- 9801:9801
volumes:
- .:/var/www
client:
image: deminy/swoole-by-examples:client-6.2
environment:
DISABLE_DEFAULT_SERVER: 1
links:
- mysql
- postgresql
- redis
- server
volumes:
- .:/var/www
redis:
image: redis:8-alpine
mysql:
image: mysql:8
environment:
MYSQL_DATABASE: test
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: username
postgresql:
image: postgres:17-alpine
environment:
POSTGRES_DB: test
POSTGRES_USER: username
POSTGRES_PASSWORD: password