summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 1351b2ac13dc782f58fa17447ac754d4cb2a0762 (plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '2.4'

services:
    mysql:
        build: ./mysql
        restart: always
        volumes:
            - mysql:/var/lib/mysql
        environment:
            MYSQL_ROOT_PASSWORD: biomedisa
            MYSQL_DATABASE: biomedisa_database
            MYSQL_USER: biomedisa
            MYSQL_PASSWORD: biomedisa
    redis:
        image: redis:2
        restart: always
    django:
        build: ./django
        restart: always
        tty: true
        stdin_open: true
        depends_on:
            - mysql
            - redis
        links:
            - mysql:mysql
            - redis:redis
        volumes:
            - src:/biomedisa
            - src:${BIOMEDISA_HOST_SRC_PATH}
        environment:
            MYSQL_HOST: mysql
            REDIS_HOST: redis
            BIOMEDISA_SRC_PATH: /biomedisa
        ports:
            - 8000:8000
    biomedisa:
        build: ./biomedisa
        runtime: nvidia
        restart: always
        tty: true
        stdin_open: true
        depends_on:
            - mysql
            - redis
        links:
            - mysql:mysql
            - redis:redis
        volumes:
            - src:/biomedisa
            - src:${BIOMEDISA_HOST_SRC_PATH}
        environment:
            MYSQL_HOST: mysql
            REDIS_HOST: redis
            BIOMEDISA_SRC_PATH: /biomedisa
            NVIDIA_VISIBLE_DEVICES: all

volumes:
    src:
        driver: local
        driver_opts:
            type: none
            o: bind
            device: ${BIOMEDISA_HOST_SRC_PATH}
    mysql:
#    media: