theia-vpn/docker-compose-template.yml

39 lines
789 B
YAML

version: '3.7'
services:
nginx:
image: nginx:alpine-perl
container_name: theia_nginx
environment:
- GIREF_HOSTNAME=${GIREF_HOSTNAME}
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
theia:
build:
context: .
dockerfile: Dockerfile
container_name: theia
image: theia-vpn
expose:
- "3000"
volumes:
VOLUMES_WRAPPER
- ~/.ssh:/home/.ssh:ro
init: true
environment:
- ANYCONNECT_SERVER=${VPN_SERVER}
- ANYCONNECT_USER=${VPN_USER}
- ANYCONNECT_PASSWORD=${VPN_PASSWORD}
- USER_ID=${USER_ID}
- GROUPE_ID=${GROUPE_ID}
networks:
- default
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
restart: unless-stopped