docker-compose.yml 875 Bytes
Newer Older
Martin Mai's avatar
-  
Martin Mai committed
1
2
3
4
5
version: '2'
networks:
  # for use with a reverse proxy
  backend:
    driver: bridge
Your Name's avatar
-    
Your Name committed
6
  
Martin Mai's avatar
-  
Martin Mai committed
7
services:
Löw, Bernhard's avatar
-    
Löw, Bernhard committed
8
  ubuntu:
Martin Mai's avatar
-  
Martin Mai committed
9
10
11
12
    build:
      context: ./docker/
      dockerfile: Dockerfile
    image: default-ubuntu-16-04:dirty
Your Name's avatar
-    
Your Name committed
13
14
    hostname: normal-ubuntu-in-docker-1--i-1
    restart: always    
Martin Mai's avatar
-  
Martin Mai committed
15
16
17
18
19
    expose:
      - 22    
      - 80
      - 443
    ports:
Martin Mai's avatar
Martin Mai committed
20
21
22
23
      # map ssh port to 220 if already used
      - "220:22"
      - "80:80"       
      - "443:443"     
Your Name's avatar
-    
Your Name committed
24
25
      # syntax to specify IP 
      #  - "141.13.240.24:80:80"      
Martin Mai's avatar
-  
Martin Mai committed
26
27
28
    networks:
     - backend
    volumes:
Your Name's avatar
-    
Your Name committed
29
    #adapt to your need or remove
Martin Mai's avatar
-  
Martin Mai committed
30
31
32
      - ./volumes/var/www:/var/www
      - ./volumes/var/lib/mysql:/var/lib/mysql
      - ./volumes/opt:/opt      
Your Name's avatar
-    
Your Name committed
33
34
      - ./volumes/root/uniba.de/share:/root/uniba.de/share
      - ./volumes/root/.bash_history:/root/.bash_history         
Martin Mai's avatar
-  
Martin Mai committed
35
      - ./volumes/.git:/.git