-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (57 loc) · 1.52 KB
/
docker-compose.yml
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
54
55
56
57
58
59
60
61
62
version: '3.4'
services:
chatapp_api:
container_name: ChatApp_API
image: chatapp_api
build:
context: .
dockerfile: ChatApp.API/Dockerfile
depends_on:
- postgres
ports:
- "5000:5000"
- "5001:5001"
environment:
ASPNETCORE_URLS: "https://+:5001;http://+:5000"
ASPNETCORE_ENVIRONMENT: "Development"
ASPNETCORE_HTTPS_PORT: "8001"
ASPNETCORE_Kestrel__Certificates__Default__Password: ${CERT_PASSWORD}
ASPNETCORE_Kestrel__Certificates__Default__Path: "/https/aspnetapp.pfx"
networks:
- chatapp-network
volumes:
- ~/.aspnet/https:/https/
postgres:
container_name: chatapp_postgres
image: postgres:latest
restart: on-failure:3
ports:
- "5432:5432"
volumes:
- postgres_chatapp_data:/var/lib/postgresql/data/
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: chatapp
PGDATA: /var/lib/postgresql/data/
networks:
- chatapp-network
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: on-failure:3
depends_on:
- postgres
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
PGADMIN_LISTEN_PORT: "5050"
ports:
- "5050:5050"
networks:
- chatapp-network
volumes:
postgres_chatapp_data:
networks:
chatapp-network:
driver: bridge