-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
47 lines (42 loc) · 903 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
42
43
44
45
46
services:
webapi:
container_name: my-api
#image: api:latest
build:
context: .
dockerfile: Dockerfile
ports:
- "5000:80"
depends_on:
- postgres
environment:
- ASPNETCORE_ENVIRONMENT=Development
postgres:
image: postgres:latest
container_name: my-postgres
environment:
POSTGRES_USER: dis
POSTGRES_PASSWORD: dis
POSTGRES_DB: test_db
ports:
- "5432:5432"
networks:
- backend
volumes:
- postgres_data:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- "8080:80" # pgAdmin will be accessible on port 8080
depends_on:
- postgres
networks:
- backend
networks:
backend:
volumes:
postgres_data: