-
Notifications
You must be signed in to change notification settings - Fork 165
/
Copy pathdocker-compose.yml
55 lines (53 loc) · 1.32 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
53
54
55
services:
php:
build:
context: .
dockerfile: Dockerfile
target: development
args:
USER_ID: ${UID:-1000}
GROUP_ID: ${GID:-1000}
volumes:
- .:/var/www/html/
restart: unless-stopped
networks:
- development
ports:
- 80:8080
- 443:8443
- 5173:5173
depends_on:
- mariadb
environment:
SSL_MODE: "full"
SSL_CERTIFICATE_FILE: "certs/local-dev.pem"
SSL_PRIVATE_KEY_FILE: "certs/local-dev-key.pem"
# docker-php configs
AUTORUN_ENABLED: "true"
AUTORUN_LARAVEL_MIGRATION: "true"
AUTORUN_LARAVEL_CONFIG_CACHE: "false"
AUTORUN_LARAVEL_EVENT_CACHE: "false"
AUTORUN_LARAVEL_ROUTE_CACHE: "false"
AUTORUN_LARAVEL_STORAGE_LINK: "true"
AUTORUN_LARAVEL_VIEW_CACHE: "false"
mariadb:
image: mariadb:11
networks:
- development
volumes:
- ./_volumes/mysql/mysqsl_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: '${DB_ROOT_PASSWORD}'
MYSQL_ROOT_HOST: "%"
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ALLOW_EMPTY_PASSWORD: 'no'
ports:
- "3306:3306"
mailpit:
image: axllent/mailpit
networks:
- development
networks:
development: