forked from wojas/docker-mac-network
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 992 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: '2'
services:
proxy:
image: tkaefer/docker-mac-network
ports:
- "127.0.0.1:13194:13194"
#- "127.0.0.1:13194:13194/udp"
# UDP did not work, probably because the source port changes all the time
volumes:
- ./out:/tmp/out
#command: -v UDP4-RECVFROM:13194,fork UDP4-SENDTO:172.17.0.1:1194
command: TCP-LISTEN:13194,fork TCP:10.64.1.2:1194
environment:
- FORWARD_PORT=13194
networks:
backend:
openvpn:
image: kylemanna/openvpn
volumes_from:
- proxy
volumes:
- ./config:/etc/openvpn
cap_add:
- NET_ADMIN
environment:
dest: docker-for-mac.ovpn
DEBUG: '1'
DOCKER_NETWORK: 10.64.1.0
DOCKER_NETMASK: 255.255.255.192
command: /local/helpers/run.sh
networks:
backend:
ipv4_address: 10.64.1.2
networks:
backend:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.64.1.0/26
gateway: 10.64.1.1