-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (42 loc) · 1.08 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
version: '3.8'
services:
app:
build: .
ports:
- "5000:5000"
environment:
- DATABASE_URL=postgres://prosalemanager:prosalepassword@db:5432/prosaledatabase
- DB_HOST=db
- DB_PORT=5432
- DB_USER=prosalemanager
- DB_PASSWORD=prosalepassword
- DB_NAME=prosaledatabase
- NODE_ENV=production
- HOST=0.0.0.0
- PORT=5000
- JWT_SECRET=8Aj4Uo1JTa6C+0NL0N1AyP6O9aq7e4hyHzR9Ygev+3E=
- SESSION_SECRET=8Aj4Uo1JTa6C+0NL0N1AyP6O9aq7e4hyHzR9Ygev+3E=
volumes:
- ./drizzle:/app/drizzle
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:15
ports:
- "5432:5432"
environment:
- POSTGRES_USER=prosalemanager
- POSTGRES_PASSWORD=prosalepassword
- POSTGRES_DB=prosaledatabase
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U prosalemanager -d prosaledatabase"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
postgres_data: