summaryrefslogtreecommitdiff
path: root/docker/docker-compose.yml
diff options
context:
space:
mode:
authorrohmhatre2017-11-26 00:25:02 +0530
committerankitjavalkar2018-01-04 11:37:20 +0530
commit0713c60a5ad4b71d4a2050d13cf30afaf37d935b (patch)
treec7cb207ab05a2197fd8bdd13d1d559345a2b29ef /docker/docker-compose.yml
parent6f2e29a067cbeaf88b8ea478bb7c24fe8772180a (diff)
downloadonline_test-0713c60a5ad4b71d4a2050d13cf30afaf37d935b.tar.gz
online_test-0713c60a5ad4b71d4a2050d13cf30afaf37d935b.tar.bz2
online_test-0713c60a5ad4b71d4a2050d13cf30afaf37d935b.zip
Added docker compose configuration
Diffstat (limited to 'docker/docker-compose.yml')
-rw-r--r--docker/docker-compose.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
new file mode 100644
index 0000000..747cbda
--- /dev/null
+++ b/docker/docker-compose.yml
@@ -0,0 +1,41 @@
+version: '2'
+services:
+ yaksh-django:
+ build:
+ context: .
+ dockerfile: Dockerfile_django
+ image: yaksh.django
+ container_name: yaksh_django
+ volumes:
+ - ../.:/Sites/online_test
+ depends_on:
+ - yaksh-db
+ - yaksh-codeserver
+ links:
+ - yaksh-db
+ - yaksh-codeserver
+ ports:
+ - 8000:80
+ restart: always
+
+
+ yaksh-codeserver:
+ build:
+ context: .
+ dockerfile: Dockerfile_codeserver
+ image: yaksh.codeserver
+ container_name: yaksh_codeserver
+ volumes:
+ - ../yaksh_data:/Sites/online_test/yaksh_data
+ restart: always
+
+
+ yaksh-db:
+ image: mariadb:10.2
+ container_name: yaksh_db
+ volumes:
+ - ./mysql:/var/lib/mysql
+ environment:
+ MYSQL_ROOT_PASSWORD: root
+ MYSQL_DATABASE: yaksh
+ restart: always