-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
45 lines (42 loc) · 1.06 KB
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
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: ${DB_HOST}
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}
TZ: ${TZ}
depends_on:
- postgres
postgres:
image: postgis/postgis
environment:
POSTGRES_USER: "${DB_USER}"
POSTGRES_PASSWORD: "${DB_PASS}"
POSTGRES_DB: "${DB_NAME}"
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
node_modules:
pgdata: