diff options
author | Prabhu Ramachandran | 2018-01-05 15:47:05 +0530 |
---|---|---|
committer | GitHub | 2018-01-05 15:47:05 +0530 |
commit | 65ce10a9057d30e6a7e9a37926abdef97e5fdc48 (patch) | |
tree | 8cf8c7ef08b63b68013dce99faf14223c2f73764 /docker/docker-compose.yml | |
parent | feb295b4107a95621e9430f5c7042cfde4674cc0 (diff) | |
parent | bbf844c6ebf9b29c436930b5d5129ebf77a3aad1 (diff) | |
download | online_test-65ce10a9057d30e6a7e9a37926abdef97e5fdc48.tar.gz online_test-65ce10a9057d30e6a7e9a37926abdef97e5fdc48.tar.bz2 online_test-65ce10a9057d30e6a7e9a37926abdef97e5fdc48.zip |
Merge pull request #404 from ankitjavalkar/add-docker-compose-test
Add docker compose deployment
Diffstat (limited to 'docker/docker-compose.yml')
-rw-r--r-- | docker/docker-compose.yml | 41 |
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..7ee3860 --- /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: + - ..:/Sites/online_test + 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 |