-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
39 lines (39 loc) · 1005 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
version: '3'
services:
db:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: mydb
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- db-data:/var/lib/postgresql/data
app:
build:
context: .
dockerfile: Dockerfile
expose:
- 5000
ports:
- '5000:5000'
restart: always
depends_on:
- db
environment:
HOST: ${HOST}
NODE_ENV: production
PORT: 5000 # Set the value for PORT directly in docker-compose.yml
API_VERSION: ${API_VERSION}
FRONTEND_URL: ${FRONTEND_URL}
JWT_SECRET: ${JWT_SECRET}
EXPIRES_IN: ${EXPIRES_IN}
SESSION_KEY: ${SESSION_KEY}
CLIENTID: ${CLIENTID}
CLIENTSECRET: ${CLIENTSECRET}
DATABASE_URL: postgres://postgres:password@db/mydb
DEV_DATABASE_URL: postgres://postgres:password@db/mydb
TEST_DATABASE_URL: postgres://postgres:password@db/mydb
command: npm start
volumes:
db-data: