-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (79 loc) · 1.58 KB
/
docker-compose.yml
File metadata and controls
81 lines (79 loc) · 1.58 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
x-app: &app
pull_policy: never
build:
dockerfile: containers/php/Dockerfile
target: development
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
restart: on-failure
depends_on:
- redis
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- /etc/localtime:/etc/localtime:ro
- .:/var/www/html
services:
nginx:
pull_policy: never
build:
dockerfile: containers/nginx/Dockerfile
restart: on-failure
ports:
- "8080:80"
volumes:
- /etc/localtime:/etc/localtime:ro
- .:/var/www/html:ro
environment:
FPM_HOST: php
FPM_PORT: 9000
php:
<<: *app
environment:
NIGHTWATCH_INGEST_URI: nightwatch-agent:2407
scheduler:
<<: *app
user: root
command: scheduler
stop_signal: SIGKILL
environment:
PHP_HOST: php
PHP_PORT: 9000
worker:
<<: *app
user: root
command: worker
environment:
PHP_HOST: php
PHP_PORT: 9000
nightwatch-agent:
<<: *app
user: root
command: nightwatch
stop_signal: SIGKILL
environment:
PHP_HOST: php
PHP_PORT: 9000
healthcheck:
test: php artisan nightwatch:status
interval: 30s
timeout: 5s
retries: 3
start_period: 5s
redis:
image: redis:8.6.2-alpine
restart: on-failure
ports:
- "6379:6379"
testing:
profiles:
- testing
build:
dockerfile: containers/php/Dockerfile
context: .
target: testing
cache_to:
- type=gha,mode=max,scope=testing
cache_from:
- type=gha,scope=testing