File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed
Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,13 @@ services:
218218 - chat-service
219219 networks : [ backend ]
220220
221+ frontend :
222+ image : ${DOCKERHUB_USER}/codecampus-frontend:${IMAGE_TAG:-latest}
223+ restart : unless-stopped
224+ ports : [ "4200:4200" ]
225+ networks : [ backend ]
226+
227+
221228# #######################
222229# NETWORK & VOLUME #
223230# #######################
Original file line number Diff line number Diff line change 1+ # 1) Cài prerequisites & thêm Docker APT repo
2+ apt-get update
3+ apt-get install -y ca-certificates curl gnupg
4+
5+ install -m 0755 -d /etc/apt/keyrings
6+ curl -fsSL https://download.docker.com/linux/$( . /etc/os-release; echo " $ID " ) /gpg \
7+ | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
8+ chmod a+r /etc/apt/keyrings/docker.gpg
9+
10+ echo " deb [arch=$( dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] \
11+ https://download.docker.com/linux/$( . /etc/os-release; echo " $ID " ) \
12+ $( . /etc/os-release; echo " $VERSION_CODENAME " ) stable" \
13+ > /etc/apt/sources.list.d/docker.list
14+
15+ apt-get update
16+
17+ # 2) Cài Docker Engine (nếu chưa có) + plugin Compose v2
18+ apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
19+
20+ # 3) Kiểm tra
21+ docker compose version
22+
23+
24+ # Khởi động lại docker daemon
25+ systemctl daemon-reload
26+ systemctl enable --now containerd
27+ systemctl enable --now docker
28+ systemctl status docker --no-pager
29+
30+ docker ps
You can’t perform that action at this time.
0 commit comments