forked from juhahinkula/task-manage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
42 lines (38 loc) · 910 Bytes
/
Copy pathdocker-compose-dev.yml
File metadata and controls
42 lines (38 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Docker compose using local builds of backend and frontend
# See docker-compose.yml for instructions on running the compose files
services:
postgres:
image: postgres:16
container_name: database
ports:
- 5433:5432
volumes:
- postgres_data:/var/lib/postgresql/data
env_file: .env
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=taskmanagement
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 1s
timeout: 5s
retries: 10
backend:
build: ./backend
ports:
- 5000:5000
env_file: ./backend/.env
depends_on:
postgres:
condition: service_healthy
frontend:
build:
context: ./frontend
args:
- VITE_BACKEND_URL=${VITE_BACKEND_URL}
ports:
- 5173:80
env_file: ./frontend/.env
volumes:
postgres_data: