-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.21 KB
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
47
48
49
50
51
52
53
services:
webapi:
container_name: webapi_container
ports:
- "5000:5000"
depends_on:
- postgres_db
build:
context: .
dockerfile: Dockerfile
environment:
- ConnectionStrings__DefaultConnection=User ID=sara;Password=mysecretpassword;Server=postgres_container;Port=5432;Database=SampleDB;IntegratedSecurity=true;Pooling=true;
- ASPNETCORE_URLS=http://+:5000
networks:
- dev_network
postgres_db:
container_name: postgres_container
image: postgres
environment:
POSTGRES_USER: sara
POSTGRES_PASSWORD: mysecretpassword
PGDATA: /data/postgres
volumes:
- postgres_data:/data/postgres
ports:
- "5433:5432"
networks:
- dev_network
restart: unless-stopped
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: admin@gmail.com
PGADMIN_DEFAULT_PASSWORD: mysecretpassword
PGADMIN_CONFIG_SERVER_MODE: 'False'
volumes:
- pgadmin_data:/var/lib/pgadmin
ports:
- "8080:80"
networks:
- dev_network
restart: unless-stopped
networks:
dev_network:
driver: bridge
volumes:
postgres_data:
pgadmin_data: