mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-18 01:09:03 +00:00
docker-compose setup
This commit is contained in:
27
docker-compose.yml
Normal file
27
docker-compose.yml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user