-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
83 lines (77 loc) · 1.8 KB
/
docker-compose.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
services:
nrp:
env_file:
- .env
environment:
- TZ=Europe/Madrid
image: tuiteraz/nginx-reverse-proxy:${IMAGE_VERSION}
restart: unless-stopped
container_name: nrp
ports:
- 80:80
- 443:443
- 3128:3128
- 9020:9020
volumes:
- ./nrp.yaml:/etc/nrp.yaml
- letsencrypt:/etc/letsencrypt
- /etc/localtime:/etc/localtime:ro
# - ./nrp-cli-linux:/usr/local/bin/nrp-cli
# - ./configs/nginx:/etc/nginx
networks:
multi-proxy:
cap_add:
- NET_ADMIN
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
cadvisor:
image: tuiteraz/cadvisor:0.47.2
platform: linux/aarch64 # m1/m2 mac
devices:
- /dev/kmsg:/dev/kmsg
container_name: cadvisor
privileged: true
ports:
- 4082:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro # for docker socket
- /var/folders:/var/lib/docker:ro # directory, which contains Docker's data
- /dev/disk0:/dev/disk # This directory, where disk I/O stats are available: diskutil list
- /etc/machine-id:/etc/machine-id:ro
- /var/lib/dbus/machine-id:/var/lib/dbus/machine-id:ro
networks:
multi-proxy:
restart: unless-stopped
service1:
env_file:
- .env
environment:
- TZ=Europe/Madrid
image: tuiteraz/fastify-tmpl:1.1.5
container_name: nrp-service1
ports:
- 9100:9000
networks:
multi-proxy:
restart: unless-stopped
service2:
env_file:
- .env
environment:
- TZ=Europe/Madrid
image: tuiteraz/fastify-tmpl:1.1.5
container_name: nrp-service2
ports:
- 9200:9000
networks:
multi-proxy:
restart: unless-stopped
networks:
multi-proxy:
driver: bridge
volumes:
letsencrypt: