-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (63 loc) · 1.47 KB
/
Copy pathdocker-compose.yml
File metadata and controls
68 lines (63 loc) · 1.47 KB
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
# itk-version: 3.2.4
networks:
frontend:
external: true
app:
driver: bridge
internal: false
services:
database:
image: mariadb:11.4
networks:
- app
ports:
- "3306"
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=db
- MYSQL_PASSWORD=db
- MYSQL_DATABASE=db
#- ENCRYPT=1 # Uncomment to enable database encryption.
volumes:
- mariadb-data:/var/lib/mysql
phpfpm:
image: itkdev/php8.4-fpm:latest
user: ${COMPOSE_USER:-deploy}
networks:
- app
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
database:
condition: service_healthy
environment:
- PHP_XDEBUG_MODE=${PHP_XDEBUG_MODE:-off}
- PHP_MAX_EXECUTION_TIME=30
- PHP_MEMORY_LIMIT=256M
- PHP_SENDMAIL_PATH=/usr/bin/msmtp --host=mail --port=1025 --read-recipients --read-envelope-from
- DOCKER_HOST_DOMAIN=${COMPOSE_DOMAIN:?}
- PHP_IDE_CONFIG=serverName=localhost
- COMPOSER_CACHE_DIR=/app/var/composer-cache
volumes:
- .:/app
# Code checks tools
markdownlint:
image: itkdev/markdownlint
profiles:
- dev
volumes:
- ./:/md
prettier:
image: jauderho/prettier
profiles:
- dev
volumes:
- ./:/work
volumes:
mariadb-data: