-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
43 lines (40 loc) · 956 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
version: '3'
services:
db:
image: postgres
container_name: nestjs-task-manager-postgres
restart: always
tty: true
ports:
- '${POSTGRES_PORT}:5432'
environment:
POSTGRES_HOST: ${POSTGRES_HOST}
POSTGRES_PORT: ${POSTGRES_PORT}
POSTGRES_USERNAME: ${POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DATABASE: ${POSTGRES_DATABASE}
app:
image: nestjs-task-manager-app
build: .
tty: true
links:
- db
volumes:
- .:/nestjs-task-manager
- ./node_modules:/nestjs-task-manager/node_modules
ports:
- ${PORT}:3000
depends_on:
- db
restart: always
command: bash -c "npm run start:dev"
pgadmin:
image: dpage/pgadmin4
tty: true
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_EMAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PASSWORD}
ports:
- "${PGADMIN_PORT}:80"
depends_on:
- db