-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (68 loc) · 1.66 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
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}
nginx:
platform: linux/x86_64
image: nginx:1.13.8
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
mysql:
image: mysql:5.7
container_name: ${PROJECT_NAME}-db
ports:
- "3306:3306"
depends_on:
- php8
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
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
redis:
image: redis:latest
container_name: ${PROJECT_NAME}-redis
command: redis-server
ports:
- "6379:6379"
volumes:
- /docker/redis:/data
redisui:
image: patrikx3/p3x-redis-ui:latest
container_name: ${PROJECT_NAME}-redisui
ports:
- "7843:7843"
volumes:
- /docker/p3x-redis-ui-settings:/settings