-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.example.yaml
64 lines (57 loc) · 1.03 KB
/
docker-compose.example.yaml
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
56
57
58
59
60
61
62
63
64
---
networks:
web_net:
volumes:
web_config:
driver: local
web_certs:
driver: local
#
# Add more volumes for your services below
#
# E.g.:
#
# example_data:
# driver: local
#
services:
web:
image: ghcr.io/kozhin/arm64/nginx:latest
container_name: web
restart: unless-stopped
networks:
- web_net
volumes:
- web_config:/etc/nginx
- web_certs:/etc/letsencrypt
ports:
- 80:80
- 443:443
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:80/live || exit 1"]
interval: 15s
timeout: 30s
retries: 3
start_period: 5s
#
# Add more services below
#
# E.g.:
#
# example:
# image: example:latest
# container_name: example
# environment:
# - ENV=production
# restart: unless-stopped
# networks:
# - pub_net
# volumes:
# - example_data:/data
# - /etc/timezone:/etc/timezone:ro
# - /etc/localtime:/etc/localtime:ro
# ports:
# - 31443:3000
# - 31080:3000
# depends_on:
# - example2