Skip to content

Commit 483661a

Browse files
committed
Initial commit
0 parents  commit 483661a

11 files changed

+175
-0
lines changed

.compose-apply

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker-compose.yml

.compose-cd

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
UPDATE_REPO_ONLY=true
2+
UPDATE_IMAGE_BY_REPO=true

.github/workflows/lint-actionlint.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: lint actions
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/**'
7+
8+
jobs:
9+
lint-actionlint:
10+
runs-on: ubuntu-22.04
11+
12+
steps:
13+
- uses: actions/[email protected]
14+
15+
- uses: reviewdog/[email protected]
16+
with:
17+
github_token: ${{ secrets.GITHUB_TOKEN }}
18+
reporter: github-pr-check
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: validate compose
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'docker-compose.yml'
7+
- '.github/workflows/validate-compose.yml'
8+
9+
jobs:
10+
validate-compose:
11+
runs-on: ubuntu-22.04
12+
13+
steps:
14+
- uses: actions/[email protected]
15+
16+
- uses: actions/[email protected]
17+
18+
- name: validate
19+
shell: bash
20+
run: |
21+
shopt -s globstar
22+
set -eux
23+
24+
for f in **/docker-compose.yml; do
25+
if ! docker compose --file "$f" config --quiet; then
26+
exit 1
27+
fi
28+
done
29+
30+
exit 0
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: validate renovate
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'renovate.json'
7+
- '.github/workflows/validate-renovate.yml'
8+
9+
jobs:
10+
validate-renovate:
11+
runs-on: ubuntu-22.04
12+
13+
steps:
14+
- uses: actions/[email protected]
15+
16+
- uses: actions/[email protected]
17+
18+
- name: install
19+
run: |
20+
npm install -g renovate
21+
22+
- name: validate
23+
run: |
24+
renovate-config-validator

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.env

LICENSE

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
BSD 2-Clause License
2+
3+
Copyright (c) 2024, yanorei32
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# InfluxDB Deploy
2+
Deployed on: mitou (compose-cd)

SECURITY.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
Use this section to tell people about which versions of your project are
6+
currently being supported with security updates.
7+
8+
| Version | Supported |
9+
|---------|--------------------|
10+
| latest | :white_check_mark: |
11+
12+
## Reporting a Vulnerability
13+
14+
Please DM to [@yanorei32](https://twitter.com/yanorei32/)

docker-compose.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
services:
2+
influxdb:
3+
image: influxdb:2.7.11@sha256:2205d18d52b9182e844bae113a4fc81360ce085c1c6b74c8ebc283bf66113087
4+
hostname: influxdb
5+
container_name: influxdb__influxdb
6+
restart: unless-stopped
7+
8+
volumes:
9+
- type: volume
10+
source: influxdb_conf
11+
target: /etc/influxdb2
12+
13+
- type: volume
14+
source: influxdb_data
15+
target: /var/lib/influxdb2
16+
17+
expose:
18+
- 8086
19+
20+
networks:
21+
- default
22+
23+
deploy:
24+
resources:
25+
limits:
26+
memory: 2048m
27+
28+
cloudflared:
29+
image: cloudflare/cloudflared:2024.6.0@sha256:8245fa2eeeabf437b061909cd59f123b39730f626bc676dc37cd3fb9f6880580
30+
hostname: cloudflared
31+
container_name: influxdb__cloudflared
32+
restart: unless-stopped
33+
34+
command: tunnel run --token ${TUNNEL_TOKEN}
35+
36+
networks:
37+
default:
38+
39+
deploy:
40+
resources:
41+
limits:
42+
memory: 128m
43+
44+
volumes:
45+
influxdb_conf:
46+
name: influxdb__influxdb_conf
47+
48+
influxdb_data:
49+
name: influxdb__influxdb_data
50+
51+
networks:
52+
default:
53+
name: influxdb__default

renovate.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"config:base"
4+
]
5+
}

0 commit comments

Comments
 (0)