From 9c3d5c48694db1018d50aa85acad434f47e5ed0b Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 13 Dec 2018 00:05:49 +0100 Subject: Initial import --- docker-compose.yml | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 docker-compose.yml (limited to 'docker-compose.yml') 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: -- cgit v1.2.3