mirror of
https://codeberg.org/hyperreal/containerfiles
synced 2024-11-01 08:33:08 +01:00
Add systemd .container files
This commit is contained in:
parent
cc08d51fa7
commit
0a20e3d19c
16
systemd/README.md
Normal file
16
systemd/README.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# systemd
|
||||||
|
|
||||||
|
These .container files are for use with systemd.
|
||||||
|
|
||||||
|
See the following documentation:
|
||||||
|
- [Make systemd better for Podman with Quadlet](https://www.redhat.com/sysadmin/quadlet-podman)
|
||||||
|
- [podman-systemd.unit](https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html)
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
``` shell
|
||||||
|
mv systemd ~/.config/containers/
|
||||||
|
systemctl --user daemon-reload
|
||||||
|
sudo loginctl enable-linger $USER
|
||||||
|
systemctl --user start gothub.service
|
||||||
|
```
|
22
systemd/gothub.container
Normal file
22
systemd/gothub.container
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=GotHub container
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Container]
|
||||||
|
ContainerName=gothub
|
||||||
|
Image=codeberg.org/gothub/gothub:latest
|
||||||
|
PublishPort=10482:3000
|
||||||
|
Environment=DOCKER=true
|
||||||
|
Environment=GOTHUB_SETUP_COMPLETE=true
|
||||||
|
Environment=GOTHUB_PROXYING_ENABLED=true
|
||||||
|
Environment=GOTHUB_IP_LOGGED=false
|
||||||
|
Environment=GOTHUB_REQUEST_URL_LOGGED=false
|
||||||
|
Environment=GOTHUB_USER_AGENT_LOGGED=false
|
||||||
|
Environment=GOTHUB_DIAGNOSTIC_INFO_LOGGED=false
|
||||||
|
Environment=GOTHUB_INSTANCE_PRIVACY_POLICY=""
|
||||||
|
Environment=GOTHUB_INSTANCE_COUNTRY=US
|
||||||
|
Environment=GOTHUB_INSTANCE_PROVIDER=Linode
|
||||||
|
Environment=GOTHUB_INSTANCE_CLOUDFLARE=false
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target default.target
|
15
systemd/librey.container
Normal file
15
systemd/librey.container
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=LibreY container
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Container]
|
||||||
|
ContainerName=librey
|
||||||
|
Image=ghcr.io/ahwxorg/librey:latest
|
||||||
|
PublishPort=10484:8080
|
||||||
|
EnvironmentFile=/home/jas/LibreY/env
|
||||||
|
Volume=/home/jas/LibreY/nginx_logs:/var/log/nginx:Z
|
||||||
|
Volume=/home/jas/LibreY/php_logs:/var/log/php7:Z
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
17
systemd/scribe.container
Normal file
17
systemd/scribe.container
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Scribe container
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Container]
|
||||||
|
ContainerName=scribe
|
||||||
|
Image=localhost/scribe:latest
|
||||||
|
PublishPort=4345:8080
|
||||||
|
Environment=SCRIBE_PORT=8080
|
||||||
|
Environment=SCRIBE_HOST=0.0.0.0
|
||||||
|
Environment=APP_DOMAIN=scribe.hyperreal.coffee
|
||||||
|
Environment=LUCKY_ENV=production
|
||||||
|
Environment=SECRET_KEY_BASE=<32-byte string>
|
||||||
|
Environment=PORT=8080
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target default.target
|
14
systemd/shaarli.container
Normal file
14
systemd/shaarli.container
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Shaarli container
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Container]
|
||||||
|
ContainerName=shaarli
|
||||||
|
Image=ghcr.io/shaarli/shaarli:release
|
||||||
|
PublishPort=4344:80
|
||||||
|
Volume=shaarli-data:/var/www/shaarli/data:Z
|
||||||
|
Volume=shaarli-cache:/var/www/shaarli/cache:Z
|
||||||
|
Volume=/home/jas/shaarli/tpl:/var/www/shaarli/tpl:Z
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target default.target
|
Loading…
Reference in New Issue
Block a user