-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (55 loc) · 1.51 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
version: '2'
services:
web:
image: nginx:latest
ports:
- "4242:80"
volumes:
- ./src:/src
- ./docker/nginx.conf:/etc/nginx/conf.d/default.conf
links:
- phpmyadmin
- php
php:
build:
context: .
dockerfile: docker/php-apache-modrewrite-zip/dockerfile
environment:
- IS4WFW_DEVELOPMENT=true
- IS4WFW_PORT=4242
expose:
- "9000"
volumes:
- ./src/.htaccess:/var/www/html/.htaccess:ro
- ./src/app:/var/www/html/app:ro
- ./temp/instance/cache:/var/www/html/cache
- ./temp/instance/logs:/var/www/html/logs
- ./temp/instance/modules:/var/www/html/modules
- ./temp/instance/user:/var/www/html/user
- ./test:/var/www/html/test:ro
- ./docker/php.conf:/usr/local/etc/php-fpm.d/zz-log.conf
- ./docker/php.ini:/usr/local/etc/php/conf.d/php-my.ini
links:
- mysql:db
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
- PMA_HOST=db
- PMA_USER=root
- PMA_PASSWORD=1234
- PMA_ABSOLUTE_URI=http://localhost:4242/phpmyadmin
- UPLOAD_LIMIT=100M
links:
- mysql:db
mysql:
image: mysql:8.0.19
ports:
- "3306:3306"
environment:
- MYSQL_DATABASE=phpwfw
- MYSQL_ROOT_PASSWORD=1234
- MYSQL_USER=phpwfw
- MYSQL_PASSWORD=1234
command: --sql_mode="" --lower_case_table_names=1
volumes:
- "./temp/mysql-casazela-20210108:/var/lib/mysql"