-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (52 loc) · 1.09 KB
/
docker-compose.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
services:
db:
image: postgres:17
ports:
- "5432:5432"
volumes:
- postgres_data_core:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
client:
build:
context: ./frontend
dockerfile: Dockerfile.dev
ports:
- "5173:5173"
depends_on:
- server
environment:
- VITE_API_URL=http://localhost:3000
develop:
watch:
- path: ./frontend
action: sync
target: /app
ignore:
- node_modules
server:
build: ./server
restart: always
ports:
- "3000:3000"
depends_on:
db:
condition: service_healthy
environment:
- DATABASE_URL=postgresql://postgres:password@db:5432/snugsafe-db
- PORT=3000
develop:
watch:
- path: ./server
action: sync+restart
target: /app
ignore:
- node_modules
volumes:
postgres_data_core: