forked from t3-oss/create-t3-turbo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal-db.yml
43 lines (40 loc) · 893 Bytes
/
local-db.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
# just a regular docker-compose.yml file
version: "3.9"
services:
pg-nextjs:
image: postgres:latest
container_name: pg-nextjs
hostname: pg-nextjs
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: nextjs
PGDATA: /var/lib/postgresql/data/nextjs
volumes:
- ./volumes/pg-nextjs-data:/var/lib/postgresql/data
networks:
- acme
restart: unless-stopped
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
depends_on:
- pg-nextjs
ports:
- "5050:80"
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
volumes:
- ./volumes/pgadmin-data:/var/lib/pgadmin
networks:
- acme
restart: unless-stopped
volumes:
pg-nextjs-data:
pgadmin-data:
networks:
acme:
driver: bridge