-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
73 lines (72 loc) · 1.94 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
version: "3.7"
services:
caddy:
container_name: caddy
image: caddy:2.7.4-alpine
restart: unless-stopped
ports:
- "8080:80"
- "8484:443"
volumes:
- ./config/vhosts/Caddyfile:/etc/caddy/Caddyfile
- ./www:/var/www/html
- ./logs/caddy/caddy.log:/var/log/caddy.log
depends_on:
- php-fpm
- database
extra_hosts:
- host.docker.internal:host-gateway
php-fpm:
container_name: php-fpm
build:
context: ./bin/${PHP_VERSION}
args:
- SYMFONY_CLI_VERSION=${SYMFONY_CLI_VERSION}
- GIT_MAIL=${GIT_MAIL}
- GIT_NAME=${GIT_NAME}
restart: unless-stopped
volumes:
- ./www:/var/www/html
- ./config/php/php.ini:/usr/local/etc/php/php.ini
- ./config/php/opcache.ini:/usr/local/etc/php/conf.d/opcache.ini
- ./config/php/fpm.ini:/usr/local/etc/php-fpm.conf
- ./config/php/php-jit.ini:/usr/local/etc/php/conf.d/jit.ini
- ./config/supervisor/supervisord.conf:/etc/supervisor/supervisord.conf
- ./config/supervisor/supervisord-programs.conf:/etc/supervisor/conf.d/app.conf
extra_hosts:
- host.docker.internal:host-gateway
database:
image: mariadb:10.11.4
container_name: mariadb
restart: 'always'
ports:
- "8181:3306"
volumes:
- ./data/mysql:/var/lib/mysql
- ./logs/mysql:/var/log/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_DATABASE: database
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: pma
depends_on:
- database
environment:
- PMA_ARBITRARY=1
- UPLOAD_LIMIT=300M
- PMA_HOST=database
- PMA_USER=root
- PMA_PASSWORD=root
ports:
- "8282:80"
mail:
image: maildev/maildev
container_name: mail
command: bin/maildev --web 80 --smtp 25 --hide-extensions STARTTLS
restart: always
ports:
- "8383:80"
- "25:25"