-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
81 lines (74 loc) · 1.68 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
version: '3.8'
x-common-configuration: &common-configuration
restart: always
privileged: true
stdin_open: true
tty: true
extra_hosts:
- "docker-registry:10.186.18.20"
cap_add:
- ALL
security_opt:
- seccomp:unconfined
working_dir: /shared
volumes:
- /shared:/shared
- ~/.config:/root/.config
env_file:
- env/xdg.env
x-proxy-environment: &proxy-environment
https_proxy: http://172.20.128.12:7890
http_proxy: http://172.20.128.12:7890
all_proxy: socks5://172.20.128.12:7890
services:
clash:
<<: *common-configuration
image: dreamacro/clash
container_name: ref.clash
ports:
- "7890:7890"
- "7891:7891"
- "9090:9090"
networks:
ref.net:
ipv4_address: 172.20.128.12
environment:
ZDOTDIR: ${XDG_CONFIG_HOME}/zsh
workspace:
<<: *common-configuration
image: ref.workspace
build: ./Dockerfile.workspace
container_name: ref.workspace
hostname: ref.workspace
networks:
ref.net:
ipv4_address: 172.20.128.11
ports:
- "25601:25601"
- "7779:7779"
environment:
<<: *proxy-environment
env_file:
- env/profile.env
dropbox:
<<: *common-configuration
image: otherguy/dropbox
container_name: ref.dropbox
hostname: ref.dropbox
networks:
ref.net:
ipv4_address: 172.20.128.13
volumes:
- ~/.config/dropbox:/opt/dropbox/.dropbox
- /shared/Dropbox:/opt/dropbox/Dropbox
environment:
<<: *proxy-environment
DROPBOX_UID: 0
DROPBOX_GID: 0
networks:
ref.net:
driver: bridge
ipam:
config:
- subnet: 172.20.128.0/24
gateway: 172.20.128.254