-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (35 loc) · 898 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (35 loc) · 898 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
services:
protfolio_backend_api:
build: .
container_name: protfolio_fastAPI_container
command: python api/server.py
ports:
- 8086:8086 # Application Port
# - 5678:5678 # Debug Server
volumes:
- .:/project
postgres:
image: postgres:16
container_name: protfolio_postgres_container
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=test_db
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
pg-admin:
image: dpage/pgadmin4:8
container_name: protfolio_pgAdmin_container
environment:
- PGADMIN_DEFAULT_EMAIL=admin@gmail.com
- PGADMIN_DEFAULT_PASSWORD=admin
- PGADMIN_LISTEN_PORT=5050
ports:
- "5050:5050"
volumes:
- pgadmin_data:/var/lib/postgresql/data
volumes:
postgres_data:
pgadmin_data: