-
Notifications
You must be signed in to change notification settings - Fork 87
/
docker-compose.yml
51 lines (47 loc) · 1.13 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
48
49
50
51
version: '3.8'
services:
app:
build:
context: .
args:
- APP_ENV
command: npm run start:dev
ports:
- 3000:3000
volumes:
- ./:/usr/src/app:cached
- node_modules:/usr/src/app/node_modules
environment:
APP_ENV: ${APP_ENV}
APP_PORT: ${APP_PORT}
DB_HOST: pgsqldb
DB_PORT: ${DB_PORT}
DB_NAME: ${DB_NAME}
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
JWT_ACCESS_TOKEN_EXP_IN_SEC: ${JWT_ACCESS_TOKEN_EXP_IN_SEC}
JWT_REFRESH_TOKEN_EXP_IN_SEC: ${JWT_REFRESH_TOKEN_EXP_IN_SEC}
JWT_PUBLIC_KEY_BASE64: ${JWT_PUBLIC_KEY_BASE64}
JWT_PRIVATE_KEY_BASE64: ${JWT_PRIVATE_KEY_BASE64}
DEFAULT_ADMIN_USER_PASSWORD: ${DEFAULT_ADMIN_USER_PASSWORD}
depends_on:
- pgsqldb
pgsqldb:
image: postgres:16.3
environment:
POSTGRES_USER: "${DB_USER}"
POSTGRES_PASSWORD: "${DB_PASS}"
POSTGRES_DB: "${DB_NAME}"
ports:
- 5432:5432
volumes:
- pgsqldata:/var/lib/postgresql/data
adminer:
image: adminer
ports:
- 8080:8080
depends_on:
- pgsqldb
volumes:
node_modules:
pgsqldata: