mirror of
https://github.com/samply/bridgehead.git
synced 2025-06-17 11:50:15 +02:00
WIP: Merged docker files and install script from bk-dep and c4 docker
This commit is contained in:
10
convenience/bridgehead-update@.service
Normal file
10
convenience/bridgehead-update@.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Bridgehead (%i) Update Service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
WorkingDirectory=/srv/docker/bridgehead/
|
||||
ExecStart=/bin/bash -c "/srv/docker/bridgehead/update-bridgehead.sh %i"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
8
convenience/bridgehead-update@.timer
Normal file
8
convenience/bridgehead-update@.timer
Normal file
@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Nightly Updates of Bridgehead (%i)
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 03:00:00
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
23
convenience/bridgehead@.service
Normal file
23
convenience/bridgehead@.service
Normal file
@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=Bridgehead (%i) Service
|
||||
Requires=traefik.service
|
||||
After=traefik.service
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
|
||||
WorkingDirectory=/srv/docker/bridgehead
|
||||
|
||||
ExecStartPre=/usr/local/bin/docker-compose --env-file site-config/%i.env down
|
||||
ExecStartPre=/usr/local/bin/docker-compose --env-file site-config/%i.env rm
|
||||
ExecStartPre=CONNECTOR_POSTGRES_PASSWORD=%i_CONNECTOR_POSTGRES_PASSWORD
|
||||
ExecStartPre=export CONNECTOR_POSTGRES_PASSWORD
|
||||
ExecStart=/usr/local/bin/docker-compose --env-file site-config/%i.env up
|
||||
ExecStart=CONNECTOR_POSTGRES_PASSWORD=
|
||||
ExecStart=export CONNECTOR_POSTGRES_PASSWORD
|
||||
|
||||
ExecStop=/usr/local/bin/docker-compose --env-file site-config/%i.env down
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
19
convenience/traefik.service
Normal file
19
convenience/traefik.service
Normal file
@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=Traefik Service
|
||||
Requires=docker.service
|
||||
After=docker.service
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
|
||||
WorkingDirectory=/srv/docker/bridgehead
|
||||
|
||||
ExecStartPre=/usr/local/bin/docker-compose --env-file site-config/start.env down
|
||||
ExecStartPre=/usr/local/bin/docker-compose --env-file site-config/start.env rm
|
||||
ExecStart=/usr/local/bin/docker-compose --env-file site-config/start.env up
|
||||
|
||||
ExecStop=/usr/local/bin/docker-compose --env-file site-config/start.env down
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user