diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2018-12-13 00:05:49 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2018-12-13 00:05:49 +0100 |
commit | 9c3d5c48694db1018d50aa85acad434f47e5ed0b (patch) | |
tree | bee24b887c12d1abaa4d942525a6c1d304dd200d /docker-compose.yml | |
download | biomedisa-9c3d5c48694db1018d50aa85acad434f47e5ed0b.tar.gz biomedisa-9c3d5c48694db1018d50aa85acad434f47e5ed0b.tar.bz2 biomedisa-9c3d5c48694db1018d50aa85acad434f47e5ed0b.tar.xz biomedisa-9c3d5c48694db1018d50aa85acad434f47e5ed0b.zip |
Initial import
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1351b2a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,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: |