generated from carlos-angel/php-base-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.dist
45 lines (41 loc) · 1.11 KB
/
docker-compose.yml.dist
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
version: '3.5'
services:
php-base-repository-be:
container_name: php-base-repository-be
build:
context: ./docker/php
args:
UID: $U_ID
volumes:
- ./src/:/var/www/html/
ports:
- '1000:80'
###> XDEBUG 3 ###
# Use your client IP here
# Linux: run "ip a | grep docker0"
# Windows (with WSL2) and Mac: host.docker.internal
environment:
XDEBUG_CLIENT_HOST: 172.17.0.1
XDEBUG_CLIENT_PORT: 9003
PHP_IDE_CONFIG: serverName=php-base-repository-be
networks:
- php-base-repository-network
depends_on:
- php-base-repository-mysql
php-base-repository-mysql:
container_name: php-base-repository-mysql
image: mysql:8.0.26
ports:
- '3336:3306'
environment:
MYSQL_DATABASE: database
MYSQL_ROOT_PASSWORD: root
volumes:
- php-base-repository-mysql-data:/var/lib/mysql
networks:
- php-base-repository-network
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
networks:
php-base-repository-network:
volumes:
php-base-repository-mysql-data: