-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose
55 lines (55 loc) · 1.23 KB
/
docker-compose
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
version: "3.7"
services:
squid:
image: my-squid
# command: apt-get update && apt-get install -y python
environment:
- TZ=Europe/London
- PROXY_UID=13
- PROXY_GID=13
ports:
- "3128:3128"
- "3129:3129"
volumes:
- type: volume
source: config
target: /etc/squid
volume:
nocopy: true
- type: volume
source: log
target: /var/log/squid
volume:
nocopy: true
- type: volume
source: cache
target: /var/spool/squid
volume:
nocopy: true
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- "node.labels.platform==rock64"
preferences:
- spread: node.labels.location
volumes:
config:
driver: local
driver_opts:
type: nfs
o: addr=192.168.1.33,rw,sync,nfsvers=4,soft,nolock
device: :/AppData/SQUID/config/
log:
driver: local
driver_opts:
type: nfs
o: addr=192.168.1.33,rw,sync,nfsvers=4,soft,nolock
device: :/AppData/SQUID/logs/
cache:
driver: local
driver_opts:
type: nfs
o: addr=192.168.1.33,rw,sync,nfsvers=4,soft,nolock
device: :/AppData/SQUID/spool/