Skip to content

Commit

Permalink
[Development][Add] Added docker compose setup for application
Browse files Browse the repository at this point in the history
  • Loading branch information
iamabhishek-dubey committed Sep 20, 2019
1 parent 6cba9d7 commit 6b1f79e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,34 @@
version: '3.3'
services:
redis:
image: redis:latest
restart: always
expose:
- 6379

mysql:
image: mysql:5.6
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: employeedb
expose:
- 3306

ot-go-webapp:
build:
context: .
dockerfile: Dockerfile
restart: always
depends_on:
- mysql
- redis
environment:
DB_URL: mysql
DB_PORT: 3306
DB_USER: root
DB_PASSWORD: password
REDIS_HOST: redis
REDIS_PORT: 6379
ports:
- 8080:8080

0 comments on commit 6b1f79e

Please sign in to comment.