docker/docker-compose.yml
2020-04-08 01:36:27 -03:00

54 lines
1.1 KiB
YAML

version: '2'
networks:
backend:
services:
bbb22:
build: .
privileged: true
environment:
- "NAME=${NAME}"
- "DOMAIN=${DOMAIN}"
hostname: ${NAME}.${DOMAIN}
cap_add:
- NET_ADMIN
environment:
- container=docker
tmpfs:
- /run
- /run/lock
- /tmp:exec,mode=777
volumes:
- ./certs/:/local/certs/
- /var/run/docker.sock:/var/run/docker.sock
- ../src/:/home/bbb/src/
security_opt:
- seccomp:unconfined
networks:
- backend
# 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
# 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