-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml.dist
More file actions
55 lines (51 loc) · 1.3 KB
/
docker-compose.yaml.dist
File metadata and controls
55 lines (51 loc) · 1.3 KB
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
version: '3.5'
services:
nginx:
image: lexthink-php_skeleton-nginx
container_name: lexthink-php_skeleton-nginx
build:
context: ./docker/nginx
args:
UID: $U_ID
ports:
- 8000:80
volumes:
- ./public:/appdata/www/public
depends_on:
- php
networks:
- lexthink-php_skeleton-network
php:
image: lexthink-php_skeleton-php
container_name: lexthink-php_skeleton-php
build:
context: ./docker/php
args:
UID: $U_ID
volumes:
- ./:/appdata/www
###> 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: host.docker.internal
XDEBUG_CLIENT_PORT: 9003
networks:
- lexthink-php_skeleton-network
mysql:
image: lexthink-php_skeleton-mysql
container_name: lexthink-php_skeleton-mysql
build:
context: ./docker/mysql
environment:
MYSQL_DATABASE: database
MYSQL_ROOT_PASSWORD: root
volumes:
- ./docker/mysql/data:/var/lib/mysql
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
networks:
- lexthink-php_skeleton-network
networks:
lexthink-php_skeleton-network:
external: true