-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1.19 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
services:
php:
build:
context: ./docker/php
args:
HOST_UID: ${HOST_UID}
env_file:
- .env
image: leaf-php
container_name: leaf-php
volumes:
- ./:/var/www
working_dir: /var/www/
environment:
XDEBUG_CONFIG: client_host=host.docker.internal client_port=9003 start_with_request=trigger idekey=leaf log=/tmp/xdebug.log
XDEBUG_MODE: develop,debug,coverage
networks:
- leaf
db:
image: mariadb:11.4
container_name: leaf-db
ports:
- '3306:3306'
environment:
MARIADB_DATABASE: ${DB_DATABASE}
MARIADB_ROOT_PASSWORD: ${DB_PASSWORD}
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: true
MARIADB_PASSWORD: ${DB_PASSWORD}
MARIADB_USER: ${DB_USERNAME}
networks:
- leaf
nginx:
image: nginx:alpine
container_name: leaf-nginx
ports:
- '8822:80'
volumes:
- ./:/var/www
- ./docker/nginx:/etc/nginx/conf.d/
networks:
- leaf
networks:
leaf:
driver: bridge