-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdocker-compose.workerman.yml
61 lines (61 loc) · 1.89 KB
/
docker-compose.workerman.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
services:
game:
build:
context: .
dockerfile: Dockerfile
user: 1000:1000
container_name: chess_server_game
ports:
- ${WSS_GAME_PORT}:${WSS_GAME_PORT}
restart: always
volumes:
- ./:/usr/share/chess-server
- /usr/share/chess-server/vendor
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
working_dir: /usr/share/chess-server
command: ["php", "cli/workerman/game.php", "start", "--d"]
data:
build:
context: .
dockerfile: Dockerfile
user: 1000:1000
container_name: chess_server_data
ports:
- ${WSS_DATA_PORT}:${WSS_DATA_PORT}
restart: always
volumes:
- ./:/usr/share/chess-server
- /usr/share/chess-server/vendor
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
working_dir: /usr/share/chess-server
command: ["php", "cli/workerman/data.php", "start", "--d"]
binary:
build:
context: .
dockerfile: Dockerfile
user: 1000:1000
container_name: chess_server_binary
ports:
- ${WSS_BINARY_PORT}:${WSS_BINARY_PORT}
restart: always
volumes:
- ./:/usr/share/chess-server
- /usr/share/chess-server/vendor
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
working_dir: /usr/share/chess-server
command: ["php", "cli/workerman/binary.php", "start", "--d"]
auth:
build:
context: .
dockerfile: Dockerfile
user: 1000:1000
container_name: chess_server_auth
ports:
- ${WSS_AUTH_PORT}:${WSS_AUTH_PORT}
restart: always
volumes:
- ./:/usr/share/chess-server
- /usr/share/chess-server/vendor
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
working_dir: /usr/share/chess-server
command: ["php", "cli/workerman/auth.php", "start", "--d"]