-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
55 lines (52 loc) · 1.19 KB
/
docker-compose.dev.yml
File metadata and controls
55 lines (52 loc) · 1.19 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
services:
testsite:
image: nginx:alpine
container_name: testsite
volumes:
- ./testsite:/usr/share/nginx/html:ro
restart: unless-stopped
caddy:
image: caddy:2
container_name: caddy
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
- caddy_logs:/var/log/caddy
ports:
- "80:80"
- "443:443"
restart: unless-stopped
depends_on:
- testsite
caddystat:
build:
context: .
dockerfile: Dockerfile.dev
container_name: caddystat
environment:
- LOG_PATH=/var/log/caddy/access.log
- LISTEN_ADDR=:8404
- DB_PATH=/data/caddystat.db
- DATA_RETENTION_DAYS=830
- MAXMIND_DB_PATH=/maxmind/GeoLite2-City.mmdb
- CHOKIDAR_USEPOLLING=1
- AUTH_USERNAME=${AUTH_USERNAME:-}
- AUTH_PASSWORD=${AUTH_PASSWORD:-}
volumes:
- caddy_logs:/var/log/caddy
- caddystat_data:/data
- ./MaxMind:/maxmind:ro
- .:/app
- /app/web/node_modules
ports:
- "8404:8404"
- "8405:8405"
restart: unless-stopped
depends_on:
- caddy
volumes:
caddy_data:
caddy_config:
caddy_logs:
caddystat_data: