Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Development][Add] Added docker compose setup for application
- Loading branch information
1 parent
6cba9d7
commit 6b1f79e
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |