docker-compose setup

This commit is contained in:
2020-01-03 16:37:51 -05:00
parent bbec2d8ccf
commit 017ed14462
7 changed files with 58 additions and 59 deletions

27
docker-compose.yml Normal file
View File

@@ -0,0 +1,27 @@
version: "2.1"
services:
tt:
build: .
depends_on:
tt_db:
condition: service_healthy
tt_web:
build: web/
ports:
- 8080:80
depends_on:
tt:
condition: service_started
tt_db:
image: postgres
# volumes:
# - ./tt_db_data:/var/lib/postgresql/data
environment:
- "POSTGRES_USER=task_tracker"
- "POSTGRES_PASSWORD=task_tracker"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U task_tracker"]
interval: 3s
timeout: 2s
retries: 10