-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
94 lines (81 loc) · 1.96 KB
/
compose.yaml
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
---
services:
php:
build:
context: ./build
dockerfile: php.dockerfile
environment:
XDEBUG_MODE: "${XDEBUG_MODE:-develop,debug}"
XDEBUG_CONFIG: remote_host=${XDEBUG_REMOTE_HOST:-host.docker.internal}
PHP_IDE_CONFIG: "serverName=docker"
WEBMAIL_PORT: "${WEBMAIL_PORT:-8025}"
PHPMYADMIN_PORT: "${PHPMYADMIN_PORT:-8081}"
volumes:
- ./build/index.php:/application/index.php
- ./php:/application/php
networks:
- dhbw
depends_on:
- db
web:
image: nginx:latest
restart: unless-stopped
ports:
- "${HTTP_PORT:-8080}:80"
- "${HTTPS_PORT:-8443}:443"
volumes:
- ./build/nginx:/etc/nginx/conf.d
- ./build/index.php:/application/index.php:ro
- ./php:/application/php
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
networks:
dhbw:
aliases:
- dhbw.test
depends_on:
- php
db:
image: mariadb:11.5-noble
# increaase max package size to 64MB
command: --max_allowed_packet=67108864
restart: unless-stopped
ports:
- "${DB_PORT:-8306}:3306"
environment:
- MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=yes
volumes:
- ./data/mariadb:/var/lib/mysql
- ./log/mariadb:/var/log/mysql
networks:
- dhbw
mail:
image: axllent/mailpit:latest
restart: unless-stopped
ports:
- "${WEBMAIL_PORT:-8025}:8025"
- "${SMTP_PORT:-1025}:1025"
networks:
- dhbw
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
platform: linux/amd64
restart: unless-stopped
ports:
- "${PHPMYADMIN_PORT:-8081}:80"
environment:
- PMA_HOST=db
- PMA_USER=root
networks:
- dhbw
depends_on:
- db
networks:
dhbw:
name: "${COMPOSE_PROJECT_NAME:-dhbw}"
external: false
# vim: syntax=yaml ts=2 sw=2 et sr softtabstop=2 autoindent