-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
57 lines (55 loc) · 1.2 KB
/
docker-compose.yaml
File metadata and controls
57 lines (55 loc) · 1.2 KB
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
56
57
services:
db:
image: postgres:18
restart: always
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: hello
POSTGRES_DB: mydb
volumes:
- /var/lib/postgresql
pgadmin:
image: dpage/pgadmin4:9
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- "5050:80"
depends_on:
- db
app:
depends_on:
- db
build:
context: .
target: dev
restart: always
develop:
watch:
- path: ./drizzle.config.ts
target: /app/drizzle.config.ts
action: sync
- path: ./package.json
action: rebuild
- path: ./app
target: /app/app
action: sync
- path: ./db
target: /app/db
action: sync+restart
- path: ./components
target: /app/components
action: sync
- path: ./lib
target: /app/lib
action: sync
- path: ./public
target: /app/public
action: sync
ports:
- "3000:3000"
environment:
DATABASE_URL: postgres://root:hello@db:5432/mydb
volumes:
- /app/node_modules