-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (35 loc) · 879 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (35 loc) · 879 Bytes
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
version: '2'
services:
api:
build: .
# Running tests : mocha --reporter spec
# Auto restart server after change code : nodemon
command: nodemon app.js
working_dir: /usr/app/
volumes:
- ./:/usr/app/
ports:
- "3232:3232"
#- "8701:8701"
environment:
# development or production
NODE_ENV: development
NODE_PORT: 3232
DB_HOST: host
DB_PORT: 5432
DB_NAME: dbname
DB_USERNAME: username
DB_PASSWORD: pass
DB_MAX: 100
DB_IDLE_TIMEOUT: 7000
DB_CONNECTION_TIMEOUT: 7000
#postgres:
#image: postgres:9.6.2-alpine
#environment:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: postgres
# POSTGRES_DB: bbplatform
#ports:
# - "5433:5432"
#volumes:
#- ./:/var/lib/postgresql