-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 799 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (34 loc) · 799 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
version: '3.8'
services:
postgres:
image: postgres:16-alpine
container_name: documentflow-db
environment:
POSTGRES_DB: documentflow
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres -d documentflow" ]
interval: 5s
timeout: 5s
retries: 10
app:
build: .
container_name: documentflow-app
depends_on:
postgres:
condition: service_healthy
environment:
DB_USERNAME: postgres
DB_PASSWORD: postgres
MAIL_USERNAME: ${MAIL_USERNAME}
MAIL_PASSWORD: ${MAIL_PASSWORD}
JWT_SECRET: ${JWT_SECRET}
ports:
- "8080:8080"
volumes:
pgdata: