Compare commits

...

2 Commits

Author SHA1 Message Date
Loïc GUEZO
91f403b696 Revise README for project name and content
Updated project name in README and removed paths section.
2026-03-28 13:49:53 +01:00
feb074b9e8 feat(docker-compose.yml): add prune system 2026-03-05 21:05:59 +01:00
2 changed files with 7 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
<h1 align=center> ServerConfig </h1> <h1 align=center> server-config </h1>
my own configuration management tool designed to quickly setup a server. It provides a simple way to deploy all my configuration needs. my own configuration management tool designed to quickly setup a server. It provides a simple way to deploy all my configuration needs.
## Table of Content ## Table of Content
@@ -19,21 +19,15 @@ Ensure you have the following **programs** installed:
- **aws** - **aws**
- **docker** - **docker**
## Paths
- /usr/local/bin/scripts
- /usr/local/bin/libs
- /var/log/serverconfig.log
- /etc/serverconfig
## Installation ## Installation
```bash ```bash
git clone https://github.com/guezoloic/serverconfig.git git clone https://github.com/guezoloic/server-config.git
cd serverconfig && \ cd serverconfig
chmod +x ./install.sh && ./install.sh chmod +x ./install.sh
./install.sh
``` ```
## Contributing ## Contributing
Feel free to fork the repository, submit issues or pull requests. Feel free to fork the repository, submit issues or pull requests.

View File

@@ -24,7 +24,7 @@ if [[ "--install" == $1 ]]; then
docker compose -f "$COMPOSE_FILE" up -d --force-recreate --remove-orphans && docker compose -f "$COMPOSE_FILE" up -d --force-recreate --remove-orphans &&
log_success "$COMPOSE_FILE is running." log_success "$COMPOSE_FILE is running."
CMD="0 0 * * * PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /usr/bin/docker compose --env-file $ENV_FILE -f $PROJECT_DIR/docker-compose.yml pull -q && /usr/bin/docker compose --env-file $ENV_FILE -f $PROJECT_DIR/docker-compose.yml up -d --remove-orphans" CMD="0 0 * * * PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /usr/bin/docker compose --env-file $ENV_FILE -f $PROJECT_DIR/docker-compose.yml pull -q && /usr/bin/docker compose --env-file $ENV_FILE -f $PROJECT_DIR/docker-compose.yml up -d --remove-orphans && /usr/bin/docker image prune -f"
add_crontab "$CMD" add_crontab "$CMD"
else else
log_error "no docker-compose.yml found at $PROJECT_DIR" log_error "no docker-compose.yml found at $PROJECT_DIR"