-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.yaml
More file actions
50 lines (46 loc) · 1.39 KB
/
compose.yaml
File metadata and controls
50 lines (46 loc) · 1.39 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
version: '3'
networks:
app.network:
external: false
volumes:
traefik-certificates:
traefik-config:
services:
traefik:
image: traefik:v3.5
container_name: traefik
networks:
- app.network
volumes:
- traefik-certificates:/etc/traefik/acme # SSL certificates storage
- ./traefik:/etc/traefik/config:ro # Static configuration files
command:
- "--api.dashboard=false"
- "--api.insecure=false"
- "--providers.file.directory=/etc/traefik/config"
- "--providers.file.watch=true"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.myresolver.acme.httpchallenge=true"
- "--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web"
- "--certificatesresolvers.myresolver.acme.storage=/etc/traefik/acme/acme.json"
- "--ping=true"
healthcheck:
test: ["CMD", "wget", "--spider", "--quiet", "http://localhost:8080/ping"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
restart: unless-stopped
app:
container_name: app
networks:
- app.network
env_file: "./.env"
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80/index.php/healthcheck"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s