Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
joohanhong
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JooHan Hong
joohanhong
Commits
7d1bfcc0
Commit
7d1bfcc0
authored
Mar 22, 2021
by
JooHan Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docker swarm complete
parent
8272a7aa
Pipeline
#5273
passed with stages
in 44 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
86 additions
and
1 deletion
+86
-1
README.md
DOCKER/SWARM/HONGSNET/README.md
+83
-0
README.md
DOCKER/SWARM/README.md
+1
-1
README.md
README.md
+2
-0
No files found.
DOCKER/SWARM/HONGSNET/README.md
0 → 100644
View file @
7d1bfcc0
[
![logo
](
https://www.hongsnet.net/images/logo.gif
)
](https://www.hongsnet.net)
# Docker Swarm 도입결과
> 성공적으로 www.hongsnet.net 시스템에 Docker Swarm을 도입/운영하였으며, 여기서는 설정만을 명시한다.
# Docker Stack
```
bash
# cat docker-stack.yml
version:
'3'
services:
hongsnet:
image: registry.hongsnet.net/joohan.hong/docker/hongsnet:latest
volumes:
- HOME:/home
- EDU_DATA:/home/edu/public_html/HongsBoard/Data
- EDU_EDITOR:/home/edu/public_html/HongsBoard/Web_editor/EDU
"
- EDU_FILE:/home/edu/public_html/HongsBoard/Web_editor/FILE"
- HONGS_DATA:/home/hongsnet/public_html/Data
"
- HONGS_EDITOR:/home/hongsnet/public_html/Web_editor/FILE"
- NEWSYSTEM_DATA:/home/newhongsystem/public_html/Data
"
- NEWSYSTEM_EDITOR:/home/newhongsystem/public_html/Web_editor/FILE"
ports:
-
"80:80"
deploy:
mode: replicated
replicas: 5
placement:
constraints:
[
node.hostname
!=
TB2-DOCKER]
update_config:
parallelism: 5
delay: 10s
restart_policy:
condition: on-failure
max_attempts: 3
window: 120s
volumes:
HOME:
driver_opts:
type
:
"nfs"
o:
"addr=192.192.0.254,nolock,soft,rw"
device:
":/WEB_SRC/home"
EDU_DATA:
driver_opts:
type
:
"nfs"
o:
"addr=192.192.0.254,nolock,soft,rw"
device:
":/WEB_DATA/EDU/Data"
EDU_EDITOR:
driver_opts:
type
:
"nfs"
o:
"addr=192.192.0.254,nolock,soft,rw"
device:
":/WEB_DATA/EDU/Web_editor/EDU"
EDU_FILE:
driver_opts:
type
:
"nfs"
o:
"addr=192.192.0.254,nolock,soft,rw"
device:
":/WEB_DATA/EDU/Web_editor/FILE"
HONGS_DATA:
driver_opts:
type
:
"nfs"
o:
"addr=192.192.0.254,nolock,soft,rw"
device:
":/WEB_DATA/HONGSNET/Data"
HONGS_EDITOR:
driver_opts:
type
:
"nfs"
o:
"addr=192.192.0.254,nolock,soft,rw"
device:
":/WEB_DATA/HONGSNET/Web_editor/FILE"
NEWSYSTEM_DATA:
driver_opts:
type
:
"nfs"
o:
"addr=192.192.0.254,nolock,soft,rw"
device:
":/WEB_DATA/NEWHONGSYSTEM/Data"
NEWSYSTEM_EDITOR:
driver_opts:
type
:
"nfs"
o:
"addr=192.192.0.254,nolock,soft,rw"
device:
":/WEB_DATA/NEWHONGSYSTEM/Web_editor/FILE"
```
DOCKER/SWARM/README.md
View file @
7d1bfcc0
...
...
@@ -14,7 +14,7 @@
| 4 | Docker Storage 검토 |
[
GO
](
./STORAGE/
)
| |
| 5 | Docker Swarm 클러스터 도입검토 |
[
GO
](
./SWARM/
)
| |
| 6 | Docker Swarm에서 애플리케이션 배포|
[
GO
](
./SWARM_APP/
)
| |
<!--| 7 | www.hongsnet.net 서비스 구성 | [GO](./HONGSNET) | |-->
| 7 | www.hongsnet.net 서비스 구성 |
[
GO
](
./HONGSNET
)
| |
## System Overview
...
...
README.md
View file @
7d1bfcc0
...
...
@@ -25,4 +25,6 @@ Promeheus, KVM Virtualization, Network Switching
## System Overview
아래의 검토내역은 최조,
`Virtualization`
->
`Docker Standalone`
으로 검토한 내역이며, Swarm은 고려되지 않는 구성도 이다.
![
system_overview
](
./www.hongsnet.net.png
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment