Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (64 loc) · 1.42 KB
/
Copy pathdocker-compose.yml
File metadata and controls
67 lines (64 loc) · 1.42 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3'
name: webchat-app-1
x-general: &general
pull_policy: build
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
- webchat_network
restart: unless-stopped
build:
platforms:
- "linux/arm64"
args:
BUILD_CONFIGURATION: Release
BUILD_PLATFORMS: linux-arm64
cache_from:
- chat_server
- chat_webclient
target:
- restorer
deploy:
replicas: 1
resources:
limits:
memory: 1024M
reservations:
memory: 16M
update_config:
parallelism: 1
delay: 10s
order: stop-first
services:
chat_server:
<<: *general
container_name: chat_server
image: chat_server:${IMAGE_TAG:-latest}
# ports:
# - "9020:8080"
build:
context: .
dockerfile: ./Server/ChatWebApplication.Server/Dockerfile
tags:
- chat_server:${IMAGE_TAG:-latest}
chat_webclient:
<<: *general
container_name: chat_webclient
image: chat_webclient:${IMAGE_TAG:-latest}
environment:
ChatConnectionUrl: "http://chat_server:8080/chatHub"
ports:
- "9025:80"
depends_on:
chat_server:
condition: service_started
build:
context: .
dockerfile: ./Client/ChatWebApplication.Client/Dockerfile
tags:
- chat_webclient:${IMAGE_TAG:-latest}
networks:
webchat_network:
name: "webchat_network"
driver: bridge