File size: 746 Bytes
525ed3a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
version: "3.5"
services:
  #db:
  #  hostname: db
  #  image: postgres:9.6
  #  environment:
  #    - POSTGRES_USER=postgres
  #    - POSTGRES_PASSWORD=password
  #  ports:
  #    - "5432:5432"
  #  volumes:
  #    - db-volume:/var/lib/postgresql/data:cached
  #  networks:
  #    - jupyter
  #  logging:
  #    driver: "json-file"
  #    options:
  #      max-size: "10m"

  jupyter:
    image: myjupyter:latest
    ports:
      - "8888:8888"
    volumes:
      - ./src:/home/jovyan/work
    networks:
      - jupyter
    deploy:
      resources:
        reservations:
          devices:
          - capabilities: [gpu]
    logging:
      driver: "json-file"
      options:
        max-size: "10m"

#volumes:
#  db-volume:

networks:
  jupyter: