This repository has been archived by the owner on Oct 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
147 lines (133 loc) · 3.54 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: '3'
services:
rabbitmq:
image: rabbitmq:3.8-management
environment:
RABBITMQ_DEFAULT_USER: admin
RABBITMQ_DEFAULT_PASS: admin
volumes:
- rabbitmq-data:/var/lib/rabbitmq
networks:
- private
loadbalancer:
image: nginx:1.17.8-alpine
volumes:
- ./docker/nginx/loadbalancer.conf:/etc/nginx/conf.d/default.conf
networks:
- private
depends_on:
- api-web
- frontend-web
php-fpm:
build:
context: docker/php
args:
PUID: ${PUID}
volumes:
- ./docker/php/custom-ini.ini:/usr/local/etc/php/conf.d/99-custom-ini.ini
- ./.composer/:/.composer
- ./em2021-api/:/data-api/
- ./tips/:/data-tips/
- ./match/:/data-match/
- ./match-api/:/data-match-api/
- ./frontend/:/data-frontend/
- ./calculation-list/:/data-calculation-list/
- ./ranking-list/:/data-ranking-list/
networks:
- default
- private
- api
- tip
- match
- ranking-list
- calculation-list
environment:
- APP_ENV=docker
- PHP_MAX_EXECUTION_TIME=30
- PHP_MEMORY_LIMIT=128M
depends_on:
- rabbitmq
api-db:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: admin
volumes:
- ./docker/mysql/custom-my.cnf:/etc/mysql/conf.d/99-custom-my.cnf
- mysql-data:/var/lib/mysql
networks:
- api
api-redis:
image: redis:6
command: redis-server --appendonly yes
volumes:
- redis-data-api:/data
networks:
- api
api-web:
image: nginx:1.17.8-alpine
volumes:
- ./em2021-api/:/data-api/
- ./docker/nginx/vhost-api.conf:/etc/nginx/conf.d/default.conf
networks:
api:
private:
aliases:
- web.api
depends_on:
- api-db
- api-redis
- php-fpm
tip-redis:
image: redis:6
command: redis-server --appendonly yes
volumes:
- redis-data-tip:/data
networks:
- tip
match-redis:
image: redis:6
command: redis-server --appendonly yes
volumes:
- redis-data-match:/data
networks:
- match
frontend-web:
image: nginx:1.17.8-alpine
volumes:
- ./frontend/:/data-frontend/
- ./docker/nginx/vhost-frontend.conf:/etc/nginx/conf.d/default.conf
networks:
private:
aliases:
- web.frontend
depends_on:
- php-fpm
ranking-list-redis:
image: redis:6
command: redis-server --appendonly yes
volumes:
- redis-data-ranking-list:/data
networks:
- ranking-list
calculation-list-redis:
image: redis:6
command: redis-server --appendonly yes
volumes:
- redis-data-calculation-list:/data
networks:
- calculation-list
volumes:
rabbitmq-data:
mysql-data:
redis-data-api:
redis-data-tip:
redis-data-match:
redis-data-ranking-list:
redis-data-calculation-list:
networks:
api:
tip:
match:
ranking-list:
calculation-list:
private: