Refactor build process to clean it up.

This commit is contained in:
2025-08-16 15:50:14 -07:00
parent 81d531a697
commit 590d174142
11 changed files with 169 additions and 20 deletions

13
all-apps/app.service Normal file
View File

@@ -0,0 +1,13 @@
[Unit]
Description=Main App
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
ExecStart=/bin/bash -c '/usr/bin/docker compose -f /app/docker-compose.yaml $(find /app -mindepth 2 -maxdepth 2 -type f -name docker-compose.yaml -exec echo -f {} \;) up'
ExecStop=/bin/bash -c '/usr/bin/docker compose -f /app/docker-compose.yaml $(find /app -mindepth 2 -maxdepth 2 -type f -name docker-compose.yaml -exec echo -f {} \;) stop'
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target