-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose.yml
44 lines (40 loc) · 968 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
34
35
36
37
38
39
40
41
42
43
44
version: '3'
networks:
freecodecamp-chengdu:
services:
freecodecamp-chengdu.github.io:
image: freecodecamp-chengdu/freecodecamp-chengdu.github.io
networks:
- freecodecamp-chengdu
healthcheck:
test: ['CMD-SHELL', 'curl -f http://localhost:3000/ || exit 1']
interval: 3s
retries: 5
start_period: 30s
labels:
- 'autoheal=true'
restart: always
deploy:
resources:
limits:
cpus: '0.80'
memory: 500M
logging:
driver: 'json-file'
options:
max-size: '10m'
autoheal:
image: willfarrell/autoheal:1.2.0
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: always
caddy:
depends_on:
- freecodecamp-chengdu.github.io
image: caddy
ports:
- 80:80
- 443:443
networks:
- freecodecamp-chengdu
command: caddy reverse-proxy --from your.domain.com --to freecodecamp-chengdu.github.io:3000