-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·54 lines (49 loc) · 1.46 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
version: '3'
services:
#https://github.com/wodby/mariadb
mysql:
image: mariadb:latest
volumes:
- "./database:/var/lib/mysql"
restart: on-failure:5
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ${DB_NAME}
phpfpm:
depends_on:
- mysql
volumes:
- ".:/var/www/html:delegated"
- "./docker/config/php-fpm/php.ini:/usr/local/etc/php/php.ini:delegated"
- "./docker/config/php-fpm/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini:delegated"
restart: on-failure:5
build: ./docker/dockerfiles/php-fpm
nginx:
depends_on:
- phpfpm
ports:
- "11000:80"
image: nginx:latest
volumes:
- ".:/var/www/html:delegated"
- "./logs/nginx:/var/log/nginx:delegated"
- "./docker/config/nginx/default.conf:/etc/nginx/conf.d/default.conf:delegated"
restart: on-failure:5
phpmyadmin:
depends_on:
- mysql
image: phpmyadmin/phpmyadmin
ports:
- 100:80
restart: on-failure:5
environment:
PMA_ARBITRARY: 1
PMA_HOST: mysql
mailcatcher:
image: schickling/mailcatcher
restart: on-failure:5
ports:
- "1135:1025"
- "1190:1080"
environment:
MAILCATCHER_PORT: 1135