-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (51 loc) · 1.27 KB
/
Copy pathdocker-compose.yml
File metadata and controls
53 lines (51 loc) · 1.27 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
46
47
48
49
50
51
52
53
version: "3.9"
services:
db:
image: postgres:17.4
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: admin
POSTGRES_DB: ucet_db
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: .
dockerfile: Dockerfile
restart: always
ports:
- "5000:5000"
depends_on:
db:
condition: service_healthy
environment:
- NODE_ENV=development
- DATABASE_URL=postgres://postgres:admin@db:5432/ucet_db
- DATABASE_URL_DOCKER=postgres://postgres:admin@localhost:5432/ucet_db
- PORT=5000
- JWT_SECRET=${JWT_SECRET}
- JWT_EXPIRY=1h
- REFRESH_SECRET=${REFRESH_SECRET}
- REFRESH_EXPIRY=7d
- NODEMAILER_USER=${NODEMAILER_USER}
- NODEMAILER_PASS=${NODEMAILER_PASS}
- BASE_URL=http://localhost:5000
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_S3_BUCKET=${AWS_S3_BUCKET}
- AWS_REGION=ap-south-1
volumes:
- .:/app
- /app/node_modules
env_file:
- .env.local
volumes:
db-data: