-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
102 lines (97 loc) · 2.37 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
services:
proxymity.auth:
container_name: "ProxyMity.Auth"
image: ${DOCKER_REGISTRY-}proxymity-auth
restart: always
build:
context: ./Proxymity-Auth-Service/src
dockerfile: ./ProxyMity.Auth/Dockerfile
ports:
- "5001:5001"
environment:
ASPNETCORE_URLS: "http://+:5001"
deploy:
resources:
limits:
cpus: "2"
memory: "126MB"
depends_on:
- postgres-auth
- rabbitmq
postgres-auth:
container_name: "ProxyMity.Auth.Database"
command: postgres -c 'max_connections=10'
image: postgres:16.1
restart: always
environment:
- POSTGRES_USER=proxymity_root
- POSTGRES_PASSWORD=proxymity123
- POSTGRES_DB=proxymitydb
deploy:
resources:
limits:
cpus: "2"
memory: "256MB"
volumes:
- ./volumes/postgres_data_auth:/var/lib/postgresql/data
ports:
- "5431:5432"
proxymity.chat:
container_name: "ProxyMity.Chat"
image: ${DOCKER_REGISTRY-}proxymity-chat
restart: always
build:
context: ./Proxymity-Chat-Service/src
dockerfile: ./ProxyMity.Chat/Dockerfile
ports:
- "5000:5000"
environment:
ASPNETCORE_URLS: "http://+:5000"
deploy:
resources:
limits:
cpus: "2"
memory: "126MB"
depends_on:
- postgres-chat
- rabbitmq
postgres-chat:
container_name: "ProxyMity.Chat.Database"
command: postgres -c 'max_connections=10'
image: postgres:16.1
restart: always
environment:
- POSTGRES_USER=proxymity_root
- POSTGRES_PASSWORD=proxymity123
- POSTGRES_DB=proxymitydb
deploy:
resources:
limits:
cpus: "2"
memory: "256MB"
volumes:
- ./volumes/postgres_data_chat:/var/lib/postgresql/data
ports:
- "5433:5432"
rabbitmq:
container_name: "ProxyMity.Auth.RabbitMQ"
image: rabbitmq:3.12-management
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
ports:
- "5672:5672"
- "15672:15672"
volumes:
- ./volumes/queue/data/:/var/lib/rabbitmq
- ./volumes/queue/log/:/var/log/rabbitmq
peerjs:
container_name: "ProxyMity.Call.Peer"
image: peerjs/peerjs-server
ports:
- "9000:9000"
deploy:
resources:
limits:
cpus: "2"
memory: "256MB"