Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 12, 2024. It is now read-only.
/devops-composePublic archive

Commite3e8f66

Browse files
authored
Update README.md
1 parentc2f596a commite3e8f66

File tree

1 file changed

+24
-38
lines changed

1 file changed

+24
-38
lines changed

‎README.md‎

Lines changed: 24 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -15,66 +15,52 @@ A compose of following Docker containers:
1515
* LDAP
1616

1717

18-
##Provisioning
18+
##How to provision
1919

20-
Run containers on Docker Compose.
21-
This may take a few minutes.
20+
###DNS
2221

23-
```sh
24-
# Wildcard DNS
25-
echo'REVERSE_PROXY_DOMAIN_NAME=192.168.1.2.xip.io'> .env
26-
27-
# Custom domain
28-
echo'REVERSE_PROXY_DOMAIN_NAME=example.com'> .env
22+
Create a wildcard record on the DNS service.
2923

30-
docker-compose build
31-
docker-compose up -d
24+
```
25+
A *.example.com. 192.168.1.2.
3226
```
3327

28+
If you do not have a domain, instead use the wildcard DNS service such as xip.io.
3429

35-
###CoreOS
30+
###Instance
3631

37-
Enough swap spaceandDocker Compose are required.
32+
Docker Composeandenough swap space are required.
3833

39-
```sh
40-
#!/bin/bash -xe
41-
cat> /etc/systemd/system/swap.service<<EOF
42-
[Service]
43-
Type=oneshot
44-
ExecStartPre=-/usr/bin/rm -f /swapfile
45-
ExecStartPre=/usr/bin/touch /swapfile
46-
ExecStartPre=/usr/bin/fallocate -l 4G /swapfile
47-
ExecStartPre=/usr/bin/chmod 600 /swapfile
48-
ExecStartPre=/usr/sbin/mkswap /swapfile
49-
ExecStartPre=/usr/sbin/sysctl vm.swappiness=10
50-
ExecStart=/sbin/swapon /swapfile
51-
ExecStop=/sbin/swapoff /swapfile
52-
ExecStopPost=-/usr/bin/rm -f /swapfile
53-
RemainAfterExit=true
54-
[Install]
55-
WantedBy=multi-user.target
56-
EOF
57-
systemctlenable --now /etc/systemd/system/swap.service
34+
```bash
35+
yum install -y docker
5836
mkdir -p /opt/bin
5937
curl -L -o /opt/bin/docker-compose https://github.com/docker/compose/releases/download/1.12.0/docker-compose-Linux-x86_64
6038
chmod +x /opt/bin/docker-compose
39+
fallocate -l 4G /swapfile
40+
chmod 600 /swapfile
41+
mkswap /swapfile
42+
swapon /swapfile
43+
echo'/swapfile swap swap defaults 0 0'>> /etc/fstab
6144
```
6245

46+
Run containers. This may take a few minutes.
6347

64-
###Custom domain
48+
```bash
49+
# Custom domain
50+
echo'REVERSE_PROXY_DOMAIN_NAME=example.com'> .env
6551

66-
Create a wildcard record on the DNS service.
52+
# Wildcard DNS
53+
echo'REVERSE_PROXY_DOMAIN_NAME=192.168.1.2.xip.io'> .env
6754

68-
```
69-
A *.example.com. 192.168.1.2.
55+
docker-compose build
56+
docker-compose up -d
7057
```
7158

7259

73-
##Setup
60+
##How to setup
7461

7562
Openhttp://devops.example.com (concatenate`devops` and domain name).
7663

77-
7864
###Setup Crowd
7965

8066
Open Crowd and configure the database connection.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp