-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
33 lines (32 loc) · 918 Bytes
/
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
volumes:
caddy_data:
caddy_config:
services:
custom-caddy:
container_name: custom-caddy
build:
context: .
dockerfile: Dockerfile
target: build-development
image: dockerized-php-caddy:dev
restart: unless-stopped
tty: true
environment:
- HOSTNAME=localhost
- PHP_FPM_GATEWAYS=:9000
volumes:
- ./build/Caddyfile:/etc/caddy/Caddyfile:ro
- ./src:/var/www/html
- caddy_data:/data
- caddy_config:/config
ports:
- 80:80
- 443:443
- 443:443/udp
healthcheck:
test: ["CMD", "wget", "--no-check-certificate", "--spider", "https://localhost/healthcheck"]
interval: 30s
timeout: 1s
retries: 3
start_period: 10s
#start_interval: 2s