mirror of
https://github.com/samply/bridgehead.git
synced 2025-06-17 16:30:14 +02:00
WIP: Merged docker files and install script from bk-dep and c4 docker
This commit is contained in:
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
|
Reference in New Issue
Block a user