Linux/Docker/Docker-Compose: Difference between revisions

From Wiki
< Linux‎ | Docker
No edit summary
No edit summary
Line 1: Line 1:
== Basics ==
* https://docs.docker.com/compose/compose-file/
* https://docs.docker.com/compose/compose-file/
* Frequently used commands:
<blockquote>
<pre>
* docker-compose build
* docker-compose up
* docker-compose up -d
* docker-compose stop
</pre>
</blockquote>


== Ubuntu testing ==
== Ubuntu testing ==

Revision as of 14:48, 26 January 2019

Basics

* docker-compose build
* docker-compose up
* docker-compose up -d
* docker-compose stop

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