generated from t3-oss/create-t3-turbo
-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathdocker-compose.yml
64 lines (62 loc) · 1.38 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
56
57
58
59
60
61
62
63
64
version: '3.8'
services:
app:
profiles:
- dev
build:
context: ./
environment:
DATABASE_URL: "postgresql://root:admin@postgres:5432/started-db?schema=public"
ports:
- 3000:3000
command: >
pnpm dev &
pnpm db:push
volumes:
- ./:/app
- /app/node_modules
- /app/packages/api/node_modules
- /app/packages/auth/node_modules
- /app/packages/config/node_modules
- /app/packages/db/node_modules
- /app/apps/nextjs/node_modules
- /app/apps/nextjs/.next
networks:
- startedProject
depends_on:
- postgres
- pgadmin
postgres:
profiles:
- db
- dev
image: postgres
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: admin
POSTGRES_DB: started-db
restart: unless-stopped
ports:
- 5432:5432
volumes:
- ./postgres_data:/var/lib/postgresql/data
networks:
- startedProject
pgadmin:
profiles:
- db
- dev
container_name: pgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
PGADMIN_CONFIG_SERVER_MODE: 'False'
ports:
- "5050:80"
networks:
- startedProject
restart: unless-stopped
networks:
startedProject:
driver: bridge