-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
52 lines (45 loc) · 1.25 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
services:
app:
extra_hosts:
- 'host.docker.internal:host-gateway'
image: thecodingmachine/php:8.3-v4-apache
expose:
- 80
volumes:
- ./:/var/www/html
- ./storage/code-coverage:/opt/phpstorm-coverage
depends_on:
db:
condition: service_healthy
mailhog:
condition: service_started
environment:
APACHE_DOCUMENT_ROOT: public/
PHP_EXTENSIONS: "intl gmp sqlite3 pdo_sqlite bcmath xdebug"
# PHP_INI_MEMORY_LIMIT: 100M
STARTUP_COMMAND_1: php -r "file_exists('.env') || copy('.env.example', '.env');"
STARTUP_COMMAND_2: composer install
STARTUP_COMMAND_3: php artisan migrate --force
CRON_SCHEDULE: "* * * * *"
CRON_COMMAND: php artisan schedule:run
db:
image: docker.io/bitnami/mariadb:11.5
environment:
MARIADB_ROOT_PASSWORD: futtertrog
MARIADB_DATABASE: futtertrog
MARIADB_USER: futtertrog
MARIADB_PASSWORD: futtertrog
volumes:
- db:/bitnami/mariadb
healthcheck:
test: [ 'CMD', '/opt/bitnami/scripts/mariadb/healthcheck.sh' ]
interval: 15s
timeout: 5s
retries: 6
mailhog:
image: mailhog/mailhog:latest
expose:
- 1025 # smtp
- 8025 # webUI
volumes:
db: