-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (51 loc) · 1.14 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
version: "3.8"
services:
app:
build:
dockerfile: ./docker/php/Dockerfile
target: app
args:
PHP_VERSION: "8.1"
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- app
environment:
HOST_UID: "${HOST_UID}"
HOST_GID: "${HOST_GID}"
XDEBUG_CONFIG: "${APP_XDEBUG_CONFIG:-client_host=host.docker.internal}"
XDEBUG_MODE: "${APP_XDEBUG_MODE:-debug,develop,trace}"
depends_on:
- selenium
webserver:
build:
dockerfile: ./docker/nginx/Dockerfile
target: webserver
extra_hosts:
- "host.docker.interal:host-gateway"
networks:
- app
environment:
SERVER_NAME: "${SERVER_NAME:-localhost}"
SERVER_PORT: "${SERVER_PORT:-80}"
APP_NAME: "app"
APP_PORT: 9000
WEB_ROOT: "/var/www/html/browser"
depends_on:
- app
selenium:
image: "selenium/standalone-chrome"
networks:
- app
volumes:
- "/dev/shm:/dev/shm"
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
app:
driver: bridge
volumes:
database.data:
driver: local
cache.data:
driver: local