version: '2' networks: # for use with a reverse proxy backend: driver: bridge services: ubuntu: build: context: ./docker/ dockerfile: Dockerfile image: default-ubuntu-16-04:dirty hostname: normal-ubuntu-in-docker-1--i-1 restart: always expose: - 22 - 80 - 443 ports: # map ssh port to 220 if already used - "220:22" - "80:80" - "443:443" # syntax to specify IP # - "141.13.240.24:80:80" networks: - backend volumes: #adapt to your need or remove - ./volumes/var/www:/var/www - ./volumes/var/lib/mysql:/var/lib/mysql - ./volumes/opt:/opt - ./volumes/root/uniba.de/share:/root/uniba.de/share - ./volumes/root/.bash_history:/root/.bash_history - ./volumes/.git:/.git