-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.dist
41 lines (37 loc) · 972 Bytes
/
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
version: '3.5'
services:
grace-web:
container_name: grace-web
build:
context: ./docker/nginx
args:
UID: $U_ID
ports:
- 250:80
volumes:
- ./public:/appdata/www/public
depends_on:
- grace-be
networks:
- grace-network
grace-be:
container_name: grace-be
build:
context: docker/php
args:
UID: $U_ID
environment:
PHP_IDE_CONFIG: serverName=Docker
PHP_XDEBUG_ENABLED: 1
XDEBUG_CONFIG: remote_host=172.17.0.1 remote_port=9005 # Linux users
# XDEBUG_CONFIG: remote_host=host.docker.internal remote_port=9005 # MacOS users
volumes:
- ./:/appdata/www
- ./docker/php/xdebug-linux.ini:/usr/local/etc/php/conf.d/xdebug.ini
# - ./docker/php/xdebug-macos.ini:/usr/local/etc/php/conf.d/xdebug.ini
- ~/.ssh/id_rsa:/home/appuser/.ssh/id_rsa
networks:
- grace-network
networks:
grace-network:
external: true