-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
42 lines (38 loc) · 1 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
version: '2'
services:
# Chat
chat-websocket-server:
container_name: sandstone-doc-live-chat-ws
build: docker/php-fpm
command: php src/chat/websocket-server.php
ports:
- 25569:25569
volumes:
- .:/var/www/html/
# Push
push-rest-api:
image: nginx
ports:
- 8480:80
volumes:
- .:/var/www/html/
- ./docker/rest-api/nginx.conf:/etc/nginx/conf.d/default.conf
links:
- php-fpm
push-websocket-server:
container_name: sandstone-doc-live-push-ws
build: docker/php-fpm
command: php src/push/websocket-server.php
ports:
- 25570:25570
volumes:
- .:/var/www/html/
# PHP fpm (common)
php-fpm:
container_name: sandstone-doc-live-php
build: docker/php-fpm
volumes:
- .:/var/www/html/
links:
- chat-websocket-server
- push-websocket-server