-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1.16 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
version: "3.8"
services:
api:
build:
dockerfile: Dockerfile
context: ./api
target: development
# Mount our host dir to the docker container
# Mount api directory (./api) to (:) docker container (/chicken/src/app)
# Reflect file changes from host to container
volumes:
- ./api:/chicken/src/app
- /chicken/src/app/node_modules
# RUN in debug mode: npm run start:debug --> Also start your vscode debugger
# RUN in dev mode: npm run start:dev
command: npm run start:debug
depends_on:
- postgres
environment:
DATABASE_URL: postgres://user:password@postgres:5432/db
NODE_ENV: development
JWT_SECRET: hard_to_guess_secret_123
PORT: 3000
ports:
- 3000:3000
- 9229:9229
postgres:
image: postgres:12.3-alpine
restart: always
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: db
ports:
- 35000:5432
postgres_admin:
image: dpage/pgadmin4:4.28
depends_on:
- postgres
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: password
ports:
- 5050:80