[Unit]
Description=Phase 2 Docker Compose Stack Service
After=docker.service
Requires=docker.service

[Service]
Type=oneshot
RemainAfterExit=yes
WorkingDirectory=/opt/docker-compose
ExecStart=/usr/bin/docker compose -f /opt/docker-compose/docker-compose.yml up -d
ExecStop=/usr/bin/docker compose -f /opt/docker-compose/docker-compose.yml down
ExecReload=/usr/bin/docker compose -f /opt/docker-compose/docker-compose.yml restart
Restart=on-failure
RestartSec=10
User=${admin_username}
Group=${admin_username}

[Install]
WantedBy=multi-user.target

