-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (49 loc) · 1.58 KB
/
docker-compose.yml
File metadata and controls
51 lines (49 loc) · 1.58 KB
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
45
46
47
48
49
50
51
# Copyright (C) 2026 Giovanbattista Abbate
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with this program.
# If not, see https://www.gnu.org/licenses/
name: vpnorchestra-controller
services:
docker-proxy:
image: tecnativa/docker-socket-proxy
container_name: docker-proxy
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- CONTAINERS=1
- IMAGES=1
- NETWORKS=1
- VOLUMES=1
- POST=1
- DELETE=1
- START=1
- STOP=1
- EXEC=1
networks:
- docker-internal
vpnorchestra-controller:
build:
context: .
dockerfile: Dockerfile
image: vpnorchestra-controller:latest
container_name: vpnorchestra-controller
ports:
- "8000:8000"
environment:
- DOCKER_HOST=tcp://docker-proxy:2375
- GATEWAY_PORT=8080
- HOST_VPN_DIR=${PWD}/ovpn_configs
- VPN_DIR=/ovpn_configs
volumes:
- ./ovpn_configs:/ovpn_configs
- ./proxy_files:/proxy_files
networks:
- docker-internal
networks:
docker-internal:
driver: bridge