You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Place your migrations below /var/lib/mechanic/migration.d/ or /etc/mechanic/migration.d/. (Make sure they are executable and exit with 0 in case of success.)
Start the Server Mechanic
mechanic migrate
Docker container
Add installation of mechanic to your Dockerfile
RUN curl -s https://raw.githubusercontent.com/server-mechanic/packages/master/install-mechanic.sh | sudo bash -s unstable
Supposedly you want mechanic state to survice container restarts, so add a volume:
VOLUME /mechanic.volume
Adjust /etc/mechanic.conf so mechanic will put state into the volume: