-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.yml
33 lines (33 loc) · 964 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
services:
server:
image: deminy/swoole-by-examples:server-5.1
environment:
AUTORELOAD_PROGRAMS: "apcu-caching ddos-protection http1 http1-integrated http2 interruptible-sleep keepalive mixed-protocols-1 pool-msgqueue pool-tcp-socket pool-unix-socket redis rock-paper-scissors tcp1 tcp2 udp websocket websocket-integrated"
DISABLE_DEFAULT_SERVER: 1
ports:
- 9801:9801
volumes:
- ./examples:/var/www
client:
image: deminy/swoole-by-examples:client-5.1
environment:
DISABLE_DEFAULT_SERVER: 1
links:
- mysql
- postgresql
- server
volumes:
- ./examples:/var/www
mysql:
image: mysql:8.0
environment:
MYSQL_DATABASE: test
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: username
postgresql:
image: postgres:14-alpine
environment:
POSTGRES_DB: test
POSTGRES_USER: username
POSTGRES_PASSWORD: password