-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 991 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (43 loc) · 991 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
services:
server:
build:
context: .
entrypoint: php artisan octane:frankenphp --workers=1 --max-requests=1
env_file: .env
depends_on:
database:
condition: service_healthy
ports:
- 127.0.0.1:8000:8000
# volumes:
# - .:/app
migrator:
build:
context: .
entrypoint: php artisan migrate --force
env_file: .env
restart: no
depends_on:
database:
condition: service_healthy
# volumes:
# - .:/app
database:
image: mariadb:11
volumes:
- mariadb:/var/lib/mysql
# ports:
# - 3306:3306
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
environment:
- MARIADB_USER=${DB_USERNAME}
- MARIADB_PASSWORD=${DB_PASSWORD}
- MARIADB_DATABASE=${DB_DATABASE}
- MARIADB_RANDOM_ROOT_PASSWORD=1
volumes:
mariadb: