-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (36 loc) · 816 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (36 loc) · 816 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
41
42
services:
app:
build: .
ports:
- "8081:8080"
depends_on:
- db
environment:
- POSTGRES_USER=darix
- POSTGRES_PASSWORD=6775212952
- POSTGRES_DB=fastapi_postgres
- POSTGRES_SERVER=db
- POSTGRES_PORT=8001
- PYTHONPATH=/app
db:
image: postgres:latest
ports:
- "8001:5432"
environment:
- POSTGRES_USER=darix
- POSTGRES_PASSWORD=darix
- POSTGRES_DB=darix
volumes:
- ./db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U darix"]
interval: 10s
timeout: 5s
retries: 5
pgadmin4:
image: dpage/pgadmin4
ports:
- 5050:80
environment:
- PGADMIN_DEFAULT_EMAIL=admin@gmail.com
- PGADMIN_DEFAULT_PASSWORD=admin