-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
48 lines (45 loc) · 983 Bytes
/
compose.yaml
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
services:
postgres:
image: postgres:17.2
container_name: postgres-db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- postgres:/var/lib/postgresql/data
server:
container_name: server
build: ./server
depends_on:
- postgres
ports:
- "3001:3001"
- "5555:5555"
environment:
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
develop:
watch:
- action: sync
path: ./server
target: /app
- action: rebuild
path: package.json
target: /app
client:
container_name: client
build: ./client
ports:
- "3000:3000"
develop:
watch:
- action: sync
path: ./client
target: /app
- action: rebuild
path: package.json
target: /app
volumes:
postgres: