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.
## Table of Content
@@ -19,19 +19,13 @@ Ensure you have the following **programs** installed:
- **aws**
- **docker**
## Paths
- /usr/local/bin/scripts
- /usr/local/bin/libs
- /var/log/serverconfig.log
- /etc/serverconfig
## Installation
```bash
git clone https://github.com/guezoloic/serverconfig.git
cd serverconfig && \
chmod +x ./install.sh && ./install.sh
git clone https://github.com/guezoloic/server-config.git
cd serverconfig
chmod +x ./install.sh
./install.sh
```
## Contributing

View File

@@ -24,7 +24,7 @@ if [[ "--install" == $1 ]]; then
docker compose -f "$COMPOSE_FILE" up -d --force-recreate --remove-orphans &&
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"
else
log_error "no docker-compose.yml found at $PROJECT_DIR"