-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (67 loc) · 1.61 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '3.7'
networks:
private:
name: private
public:
name: public
volumes:
xhgui-vendor:
services:
nginx:
image: frxyt/nginx-dev
depends_on:
- php
labels:
- "traefik.enable=true"
- "traefik.http.routers.nginx.entrypoints=web"
- "traefik.http.routers.nginx.rule=Host(`localhost`)"
networks:
- private
- public
volumes:
- ./:/var/www/html:ro
php:
image: frxyt/php-dev-full:7.3-fpm
depends_on:
- xhgui
environment:
- XHGUI_PROFILING=1
- XHGUI_SAVE_HANDLER=upload
networks:
- private
volumes:
- ./:/var/www/html:rw
- xhgui-vendor:/xhgui/vendor:ro
traefik:
image: traefik:2.0
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=public"
- "--entrypoints.web.address=:80"
depends_on:
- nginx
- xhgui
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.entrypoints=web"
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
- "traefik.http.routers.traefik.rule=Host(`traefik.localhost`)"
networks:
- public
ports:
- 127.0.0.1:80:80
volumes:
- //var/run/docker.sock:/var/run/docker.sock:ro
xhgui:
image: frxyt/xhgui-dev
labels:
- "traefik.enable=true"
- "traefik.http.routers.xhgui.entrypoints=web"
- "traefik.http.routers.xhgui.rule=Host(`xhgui.localhost`)"
networks:
- private
- public
volumes:
- xhgui-vendor:/xhgui/vendor:rw