2019-12-09 04:34:03 +01:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
networks:
|
|
|
|
backend:
|
|
|
|
|
|
|
|
services:
|
2020-04-08 06:36:27 +02:00
|
|
|
bbb22:
|
2019-12-09 04:34:03 +01:00
|
|
|
build: .
|
|
|
|
privileged: true
|
|
|
|
environment:
|
|
|
|
- "NAME=${NAME}"
|
|
|
|
- "DOMAIN=${DOMAIN}"
|
|
|
|
hostname: ${NAME}.${DOMAIN}
|
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
|
|
|
environment:
|
|
|
|
- container=docker
|
|
|
|
tmpfs:
|
|
|
|
- /run
|
|
|
|
- /run/lock
|
2020-04-08 06:36:27 +02:00
|
|
|
- /tmp:exec,mode=777
|
2019-12-09 04:34:03 +01:00
|
|
|
volumes:
|
|
|
|
- ./certs/:/local/certs/
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2019-12-09 18:45:09 +01:00
|
|
|
- ../src/:/home/bbb/src/
|
2019-12-09 04:34:03 +01:00
|
|
|
security_opt:
|
|
|
|
- seccomp:unconfined
|
|
|
|
networks:
|
|
|
|
- backend
|
|
|
|
|
2020-04-08 06:36:27 +02:00
|
|
|
# mac_proxy:
|
|
|
|
# build: mac-vpn/
|
|
|
|
# ports:
|
|
|
|
# - "127.0.0.1:13194:13194"
|
|
|
|
# command: TCP-LISTEN:13194,fork TCP:172.17.0.1:1194
|
|
|
|
# restart: always
|
|
|
|
# networks:
|
|
|
|
# - backend
|
2019-12-09 04:34:03 +01:00
|
|
|
|
2020-04-08 06:36:27 +02:00
|
|
|
# mac_openvpn:
|
|
|
|
# image: kylemanna/openvpn
|
|
|
|
# volumes:
|
|
|
|
# - ./mac-vpn:/local
|
|
|
|
# - ./mac-vpn/config:/etc/openvpn
|
|
|
|
# network_mode: host
|
|
|
|
# privileged: true
|
|
|
|
# cap_add:
|
|
|
|
# - NET_ADMIN
|
|
|
|
# environment:
|
|
|
|
# dest: docker-for-mac.ovpn
|
|
|
|
# DEBUG: '1'
|
|
|
|
# command: /local/helpers/run-vpn.sh
|
|
|
|
# restart: always
|