| version: '3.2' |
| services: |
| haproxy: |
| container_name: haproxy |
| image: haproxy |
| ports: |
| - "80:8080" |
| volumes: |
| - ./haproxy:/usr/local/etc/haproxy |
|
|
| pwd: |
| |
| container_name: pwd |
| |
| image: golang |
| |
| command: /bin/sh -c 'ssh-keygen -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key >/dev/null; cd /go/src/; if [ -e /runbin/pwd ]; then /runbin/pwd -save /pwd/sessions -name l2; else go run api.go -save /pwd/sessions -name l2; fi' |
| environment: |
| - APPARMOR_PROFILE=docker-dind |
| volumes: |
| |
| - /var/run/docker.sock:/var/run/docker.sock |
| |
| - $PWD:/go/src |
| - sessions:/pwd |
| l2: |
| container_name: l2 |
| |
| image: golang |
| |
| command: /bin/sh -c 'ssh-keygen -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key >/dev/null; cd /go/src/router/l2; if [ -e /runbin/l2 ]; then /runbin/l2 -ssh_key_path /etc/ssh/ssh_host_rsa_key -name l2 -save /pwd/networks; else go run l2.go -ssh_key_path /etc/ssh/ssh_host_rsa_key -name l2 -save /pwd/networks; fi' |
| volumes: |
| - /var/run/docker.sock:/var/run/docker.sock |
| - $PWD:/go/src |
| - networks:/pwd |
| ports: |
| - "8022:22" |
| - "8053:53" |
| - "443:443" |
| volumes: |
| sessions: |
| networks: |
|
|