-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (46 loc) · 1.05 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
version: '3'
services:
db:
image: postgres
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
container_name: postgres-db
ports:
- '5432:5432'
volumes:
- ./pgdata:/var/lib/postgresql/data
nestjs:
build:
context: .
dockerfile: ./Dockerfile
environment:
- DATABASE_URL=${DATABASE_URL}
- PORT=${PORT}
ports:
- '${PORT}:3000' # expose-to-the-world : only-in-the-docker
container_name: salty-nestjs
depends_on:
- db
volumes:
- .:/app
- /app/node_modules
pgadmin:
image: dpage/pgadmin4
restart: always
container_name: nest-pgadmin4
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
- PGADMIN_LISTEN_PORT=${PGADMIN_LISTEN_PORT}
ports:
- '8080:80'
volumes:
- ./pgadmin-data:/var/lib/pgadmin
depends_on:
- db
volumes:
pgdata:
pgadmin-data: