-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (57 loc) · 1.76 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (57 loc) · 1.76 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3'
services:
driftphp_demo_mysql:
image: "mysql:8"
container_name: driftphp_demo_mysql
networks: [driftphp_demo_main]
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: demo
volumes:
- ./mysql-init.sql:/docker-entrypoint-initdb.d/mysql-init.sql
ports:
- "3306"
driftphp_demo_amqp:
image: "rabbitmq:3-management"
container_name: driftphp_demo_amqp
networks: [driftphp_demo_main]
ports:
- "5672"
- "15672"
driftphp_demo_tiny_balancer:
image: "driftphp/tiny-balancer"
container_name: driftphp_tiny_balancer
ports:
- "${SERVER_PORT}:8000"
networks: [driftphp_demo_main]
entrypoint: ["php", "balancer", "8000", "driftphp_server_1:8000", "driftphp_server_2:8000", "driftphp_server_3:8000"]
env_file: ../.env
driftphp_demo_server_1:
build: ..
networks: [driftphp_demo_main]
container_name: driftphp_server_1
entrypoint: ["sh", "/wait-and-run.sh", "/server-entrypoint.sh"]
env_file: ../.env
driftphp_demo_server_2:
build: ..
networks: [driftphp_demo_main]
container_name: driftphp_server_2
entrypoint: ["sh", "/wait-and-run.sh", "/server-entrypoint.sh"]
env_file: ../.env
driftphp_demo_server_3:
build: ..
networks: [driftphp_demo_main]
container_name: driftphp_server_3
entrypoint: ["sh", "/wait-and-run.sh", "/server-entrypoint.sh"]
env_file: ../.env
driftphp_demo_websocket:
build: ..
networks: [driftphp_demo_main]
container_name: driftphp_tiny_websocket
entrypoint: ["sh", "/wait-and-run.sh", "/websocket-entrypoint.sh"]
ports:
- "${WEBSOCKET_PORT}:8000"
env_file: ../.env
networks:
driftphp_demo_main: