-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (53 loc) · 1.47 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
56
version: '3.4'
services:
php-fpm:
build:
context: .
dockerfile: ./docker/Dockerfile
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
target: php-prod
env_file:
- .env
environment:
PHP_IDE_CONFIG: "serverName=docker"
restart: unless-stopped
depends_on:
- database
volumes:
- .:/var/www
command: dev
extra_hosts:
- "host.docker.internal:host-gateway"
nginx:
build:
context: .
dockerfile: ./docker/Dockerfile
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
target: nginx-prod
restart: unless-stopped
env_file:
- .env
ports:
- ${NGINX_FRONTEND_PORT:-80}:80
depends_on:
- php-fpm
volumes:
- ./docker/nginx/sites:/etc/nginx/sites-available
- .:/var/www
database:
image: mariadb:10.9
restart: unless-stopped
command: --max-allowed_packet=32505856
ports:
- ${DATABASE_FRONTEND_PORT:-3306}:3306
volumes:
- ./storage/app/mariadb/data:/var/lib/mysql
environment:
- MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=true
- MARIADB_USER=${DB_USER}
- MARIADB_PASSWORD=${DB_PASSWORD}
- MARIADB_DATABASE=${DB_DATABASE}