Linux/Docker/Docker-Compose: Difference between revisions
(Die Seite wurde neu angelegt: „* https://docs.docker.com/compose/compose-file/ == Ubuntu testing == * keep running without task * connect to bridge network "lan" <pre> version: '3' services…“) |
No edit summary |
||
Line 15: | Line 15: | ||
external: | external: | ||
name: lan | name: lan | ||
</pre> | |||
== OpenVPN == | |||
* "cap_add" = add capabilities (here for changing network settings) | |||
<pre> | |||
version: '3' | |||
services: | |||
openvpn: | |||
build: . | |||
ports: | |||
- 1194:1194 | |||
cap_add: | |||
- NET_ADMIN | |||
</pre> | </pre> |
Revision as of 14:46, 26 January 2019
Ubuntu testing
- keep running without task
- connect to bridge network "lan"
version: '3' services: test123: build: . stdin_open: true networks: default: external: name: lan
OpenVPN
- "cap_add" = add capabilities (here for changing network settings)
version: '3' services: openvpn: build: . ports: - 1194:1194 cap_add: - NET_ADMIN