forked from addis-aba-software-solutions/Erp-System-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
42 lines (37 loc) · 789 Bytes
/
docker-compose.yaml
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
version: "3"
services:
app:
build:
context: .
ports:
- "8000:8000"
volumes:
- ./app:/app
command: >
sh -c "python manage.py runserver 0.0.0.0:8000"
environment:
- DB_HOST=db
- DB_NAME=Erp_api_db
- DB_USER=postgres
- DB_PASS=root
depends_on:
- db
db:
image: postgres:10-alpine
environment:
- POSTGRES_DB=Erp_api_db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=root
ports:
- "8080:8080"
pgadmin:
image: dpage/pgadmin4
container_name: demo-pgadmin #you can change this
depends_on:
- db
ports:
- "5051:80"
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
restart: always