diff options
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: |