-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
55 lines (50 loc) · 988 Bytes
/
docker-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
49
50
51
52
53
54
55
version: '3.8'
services:
postgres:
container_name: postgres_container
image: postgres:15.4
restart: always
env_file:
- .env
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- '5432:5432'
networks:
- postgres
app:
build:
context: .
dockerfile: Dockerfile
container_name: nestjs-starter-kit
env_file:
- .env
ports:
- '3000:3000' # Expose app port
- '5555:5555' # Expose Prisma Studio port
depends_on:
- postgres
volumes:
- ./src:/app/src
networks:
- postgres
# pgadmin:
# container_name: pgadmin4_container
# links:
# - postgres:postgres
# image: dpage/pgadmin4
# restart: always
# env_file:
# - .env
# ports:
# - '5050:80'
# volumes:
# - pgadmin-data:/var/lib/pgadmin
# depends_on:
# - postgres
networks:
postgres:
driver: bridge
volumes:
postgres-data:
# pgadmin-data: