-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
35 lines (33 loc) · 814 Bytes
/
docker-compose.yaml
File metadata and controls
35 lines (33 loc) · 814 Bytes
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
services:
app:
environment:
- DEBUG
- PUBLIC_IP_SERVICE_URL
- SUPER_SECRET_NAME
- SUPER_SECRET_TOKEN
image: ${APP_IMAGE:-python-insecure-app:latest}
proxy:
build: ./caddy
container_name: caddy
depends_on:
app:
condition: service_started
environment:
- LETSENCRYPT_EMAIL
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost/health"]
interval: 15s
timeout: 5s
start_period: 5s
retries: 5
ports:
- "80:80"
- "443:443"
- "1337:1337" # app
restart: always
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
command: ["caddy", "run", "--watch", "--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile"]
volumes:
caddy_data: