-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
125 lines (123 loc) · 2.88 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
version: "3"
services:
php8:
build:
context: ./docker/php8
container_name: ${PROJECT_NAME}-app
ports:
- "9000:9000"
volumes:
- ./:/var/www/html/
- ./docker/php8/www.conf:/usr/local/etc/php-fpm.d/www.conf
- ./docker/php8/php.ini:/usr/local/etc/php/php.ini
environment:
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
networks:
- app-network
php7:
image: php:7.4-fpm
build:
context: ./docker/php7
container_name: ${PROJECT_NAME}-php-7.4
ports:
- "9001:9000"
volumes:
- ./:/var/www/html
- ./docker/php7/www.conf:/usr/local/etc/php-fpm.d/www.conf
- ./docker/php7/php.ini:/usr/local/etc/php/php.ini
environment:
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
networks:
- app-network
nginx:
platform: linux/x86_64
image: nginx:1.25.5
container_name: ${PROJECT_NAME}-nginx
ports:
- "80:80"
volumes:
- ./:/var/www/html/
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php8
- php7
networks:
- app-network
mysql:
image: mysql:5.7
container_name: ${PROJECT_NAME}-db
ports:
- "3306:3306"
volumes:
- ./docker-compose:/docker-entrypoint-initdb.d
depends_on:
- php8
- php7
environment:
MYSQL_ROOT_HOST: ${DB_ROOT_HOST}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
SERVICE_NAME: mysql
networks:
- app-network
mysql_phpmyadmin:
image: phpmyadmin:5.2.1
container_name: ${PROJECT_NAME}-phpmyadmin
ports:
- "8080:80"
environment:
PMA_HOST: mysql
PMA_ARBITRARY: 1
PMA_USER: root
PMA_PASSWORD: "root"
UPLOAD_LIMIT: 2048M
MEMORY_LIMIT: 1024M
MAX_EXECUTION_TIME: 3000
networks:
- app-network
redis:
image: redis:latest
container_name: ${PROJECT_NAME}-redis
command: redis-server
ports:
- "6379:6379"
volumes:
- /docker/redis:/data
networks:
- app-network
redisui:
image: patrikx3/p3x-redis-ui:latest
container_name: ${PROJECT_NAME}-redisui
ports:
- "7843:7843"
volumes:
- /docker/p3x-redis-ui-settings:/settings
networks:
- app-network
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.2
container_name: elasticsearch
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms512m -Xmx512m
ports:
- "9200:9200"
- "9300:9300"
networks:
- app-network
kibana:
image: docker.elastic.co/kibana/kibana:7.10.2
container_name: kibana
ports:
- "5601:5601"
depends_on:
- elasticsearch
networks:
- app-network
networks:
app-network:
driver: bridge