-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (27 loc) · 909 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (27 loc) · 909 Bytes
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
version: '3'
services:
app:
image: registry.gitlab.nms.cz/nms/docker:php-8.1-dev
volumes:
- ./:/var/www/html
- ./.docker/apache/sites-available:/etc/apache2/sites-available
- ./.docker/php/conf.d/custom.ini:/usr/local/etc/php/conf.d/custom.php.ini
- ./.docker/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./.docker/php/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
links:
- db
adminer:
image: michalhosna/adminer
db:
image: mysql:5.7.36
volumes:
- ./.docker/database:/docker-entrypoint-initdb.d:cached,ro
command:
- --explicit_defaults_for_timestamp
healthcheck:
# Healthcheck overall time ~2h
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-uroot", "-ppass"]
start_period: 15s
interval: 30s
retries: 240
timeout: 5s