Browse Source

Initial version

master
Christian Aust 1 month ago
parent
commit
1915aebdfd
28 changed files with 327 additions and 0 deletions
  1. +5
    -0
      daemsing/.gitignore
  2. +3
    -0
      daemsing/app.env.template
  3. +15
    -0
      daemsing/docker-compose.yml
  4. +34
    -0
      dc@.service
  5. +6
    -0
      drone/.gitignore
  6. +0
    -0
      drone/auth/.keep
  7. +54
    -0
      drone/docker-compose.yml
  8. +0
    -0
      drone/drone/.keep
  9. +0
    -0
      drone/registry/.keep
  10. +2
    -0
      isso/.gitignore
  11. +31
    -0
      isso/config/isso.conf.template
  12. +0
    -0
      isso/database/.keep
  13. +13
    -0
      isso/docker-compose.yml
  14. +6
    -0
      matomo/.gitignore
  15. +0
    -0
      matomo/config/.keep
  16. +28
    -0
      matomo/docker-compose.yml
  17. +0
    -0
      matomo/logs/.keep
  18. +5
    -0
      matomo/matomo.env
  19. +0
    -0
      matomo/mysql/.keep
  20. +60
    -0
      matomo/nginx.conf
  21. +7
    -0
      nextcloud/.gitignore
  22. +0
    -0
      nextcloud/data/.keep
  23. +3
    -0
      nextcloud/db.env.template
  24. +44
    -0
      nextcloud/docker-compose.yml
  25. +0
    -0
      nextcloud/mysql/.keep
  26. +0
    -0
      nextcloud/var_www_html/.keep
  27. +4
    -0
      restart_all.sh
  28. +7
    -0
      software-berater/docker-compose.yml

+ 5
- 0
daemsing/.gitignore View File

@ -0,0 +1,5 @@
app.env
db
storage
tmp

+ 3
- 0
daemsing/app.env.template View File

@ -0,0 +1,3 @@
COMFY_USERNAME=someuser
COMFY_PASSWORD=somepassword
SECRET_KEY_BASE=some_very_long_secrets_base

+ 15
- 0
daemsing/docker-compose.yml View File

@ -0,0 +1,15 @@
version: '3'
services:
web:
image: registry.software-berater.net/daemsing/server:latest
env_file:
- daemsing.env
environment:
DOMAIN_NAME: daemsing.koeln
ports:
- "8003:3000"
volumes:
- ./db:/app/data/db
- ./storage:/app/data/storage
- ./tmp:/app/tmp

+ 34
- 0
dc@.service View File

@ -0,0 +1,34 @@
[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service
[Service]
Restart=always
TimeoutStartSec=1200
WorkingDirectory=/opt/dockerfiles/%i
# Remove old containers, images and volumes and update it
ExecStartPre=/usr/local/bin/docker-compose down -v
ExecStartPre=/usr/local/bin/docker-compose rm -fv
ExecStartPre=/usr/local/bin/docker-compose pull
# Compose up
ExecStart=/usr/local/bin/docker-compose up
# Compose down, remove containers and volumes
ExecStop=/usr/local/bin/docker-compose down -v
[Install]
WantedBy=multi-user.target
ExecStartPre=/usr/local/bin/docker-compose pull
# Compose up
ExecStart=/usr/local/bin/docker-compose up
# Compose down, remove containers and volumes
ExecStop=/usr/local/bin/docker-compose down -v
[Install]
WantedBy=multi-user.target

+ 6
- 0
drone/.gitignore View File

@ -0,0 +1,6 @@
.bash_history
auth/htpasswd
server.env
drone/*.sqlite
registry/**/*
!registry/.keep

+ 0
- 0
drone/auth/.keep View File


+ 54
- 0
drone/docker-compose.yml View File

@ -0,0 +1,54 @@
version: '2'
services:
registry:
restart: always
image: 'registry:2'
ports:
- "5000:5000"
environment:
REGISTRY_AUTH: htpasswd
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
volumes:
- ./registry:/var/lib/registry
- ./auth:/auth
frontend:
restart: always
image: konradkleine/docker-registry-frontend:v2
ports:
- "8004:80"
environment:
ENV_DOCKER_REGISTRY_HOST: registry
ENV_DOCKER_REGISTRY_PORT: 5000
drone-server:
image: drone/drone:0.8
ports:
- "8000:8000"
- 9000
volumes:
- ./drone:/var/lib/drone/
restart: always
environment:
- DRONE_SECRET=Kz9YUS1GaysFNkzs1BvW5ASi5F69ospxAfANBOKKpE16exsCkXI0oxfULHN0t2YsZ
- DRONE_ADMIN=christian
- DRONE_OPEN=false
- DRONE_HOST=https://drone.software-berater.net
- DRONE_GITEA=true
- DRONE_GITEA_URL=https://git.software-berater.net
drone-agent:
image: drone/agent:0.8
command: agent
restart: always
depends_on:
- drone-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_SERVER=drone-server:9000
- DRONE_SECRET=Kz9YUS1GaysFNkzs1BvW5ASi5F69ospxAfANBOKKpE16exsCkXI0oxfULHN0t2YsZ

+ 0
- 0
drone/drone/.keep View File


+ 0
- 0
drone/registry/.keep View File


+ 2
- 0
isso/.gitignore View File

@ -0,0 +1,2 @@
database/*.db
config/isso.conf

+ 31
- 0
isso/config/isso.conf.template View File

@ -0,0 +1,31 @@
[general]
dbpath = /isso/database/comments.db
host = http://localhost:4000/
[admin]
enabled = true
password = foobarbaz
[server]
listen = http://0.0.0.0:8080/
public-endpoint = https://somehost.domain.com
[moderation]
enabled = true
purge-after = 30d
[guard]
enabled = true
ratelimit = 2
direct-reply = 3
reply-to-self = false
require-author = false
require-email = true
[smtp]
host = mailhost.domain.com
port = 587
security = starttls
to = comments@domain.com
from = comments@domain.com
timeout = 10

+ 0
- 0
isso/database/.keep View File


+ 13
- 0
isso/docker-compose.yml View File

@ -0,0 +1,13 @@
version: '2'
services:
isso:
image: angristan/isso:0.12.2
environment:
- GID=1003
- UID=1003
volumes:
- ./config:/isso/config
- ./database:/isso/database
ports:
- 127.0.0.1:8002:8080

+ 6
- 0
matomo/.gitignore View File

@ -0,0 +1,6 @@
config/**/*
!config/.keep
logs/**/*
!logs/.keep
mysql/**/*
!mysql/.keep

+ 0
- 0
matomo/config/.keep View File


+ 28
- 0
matomo/docker-compose.yml View File

@ -0,0 +1,28 @@
version: '2'
services:
db:
image: mariadb:latest
command: --max_allowed_packet=64M
volumes:
- ./mysql/runtime2:/var/lib/mysql
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=1
app:
image: matomo:3-fpm
links:
- db
volumes:
- ./config:/var/www/html/config:rw
- ./logs:/var/www/html/logs
env_file:
- ./matomo.env
web:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
links:
- app
volumes_from:
- app
ports:
- 127.0.0.1:8001:80

+ 0
- 0
matomo/logs/.keep View File


+ 5
- 0
matomo/matomo.env View File

@ -0,0 +1,5 @@
TZ=Europe/Berlin
REAL_IP_HEADER=X-Forwarded-For
LOG_LEVEL=DEBUG

+ 0
- 0
matomo/mysql/.keep View File


+ 60
- 0
matomo/nginx.conf View File

@ -0,0 +1,60 @@
user www-data;
events {
worker_connections 768;
}
http {
upstream backend {
server app:9000;
}
include /etc/nginx/mime.types;
default_type application/octet-stream;
gzip on;
gzip_disable "msie6";
server {
listen 80;
root /var/www/html/;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ =404;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location ~ \.php$ {
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_intercept_errors on;
fastcgi_pass backend;
}
}
}

+ 7
- 0
nextcloud/.gitignore View File

@ -0,0 +1,7 @@
db.env
data/**/*
!data/.keep
mysql/**/*
!mysql/.keep
var_www_html/**/*
!var_www_html/.keep

+ 0
- 0
nextcloud/data/.keep View File


+ 3
- 0
nextcloud/db.env.template View File

@ -0,0 +1,3 @@
MYSQL_USER=nextcloud
MYSQL_PASSWORD=somesecretPAssW0Rd
MYSQL_DATABASE=nextcloud

+ 44
- 0
nextcloud/docker-compose.yml View File

@ -0,0 +1,44 @@
version: '3'
services:
db:
image: mariadb
restart: always
volumes:
- ./mysql:/var/lib/mysql
env_file:
- db.env
networks:
- nextcloudnet
redis:
image: redis:alpine
restart: always
networks:
- nextcloudnet
nextcloud:
image: nextcloud:18
restart: always
ports:
- 8094:80
links:
- db
volumes:
- ./var_www_html:/var/www/html
- ./data:/var/www/html/data
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
- MYSQL_HOST=db
- REDIS_HOST=redis
env_file:
- db.env
networks:
- nextcloudnet
networks:
nextcloudnet:
# empty

+ 0
- 0
nextcloud/mysql/.keep View File


+ 0
- 0
nextcloud/var_www_html/.keep View File


+ 4
- 0
restart_all.sh View File

@ -0,0 +1,4 @@
for f in */; do
echo "Restarting dc@${f%/}"
systemctl restart "dc@${f%/}"
done

+ 7
- 0
software-berater/docker-compose.yml View File

@ -0,0 +1,7 @@
version: '3'
services:
web:
image: registry.software-berater.net/software-berater.net/server:latest
ports:
- "8005:80"

Loading…
Cancel
Save