Need to fix terraform defect which replaces existing resource instead creating new.
Create systemd service to run docker compose.
Recommend that the default the system.d configs be alongside the docker compose files.
The daeman can just start/stop docker compose on the system to start things up.
Want the application module, mongodb, and rabbitmq containers running on startup.
Create a service config that will run as a service and will run whole application on startup and have start/stop/restart/status as a daemon using system.d
Update the existing Jenkins deploy to:
Stop the service (if it exists)
Update prior service config, copying the version that is checked in.
Remove the containers
push the new containers
Start the new service
Hi there, I have over 10 years of work experience with Linux and Docker as well as terraform (since 0.6.16) I think I can help you with this. Ping me and I'll do so. Cheers mate.