Docker container for generating customizable icon images
1.7K
A lightweight web service for generating customizable icon images in various shapes (circle, square, triangle, pentagon, hexagon, star) with PNG output.
docker pull vlauciani/ws-icon:latest
docker run -d --rm -p 8999:80 --name ws-icon vlauciani/ws-icon:latest
Access the service at:
git clone https://github.com/vlauciani/ws-icon.git
cd ws-icon
docker build -t vlauciani/ws-icon:latest .
docker run -d --rm -p 8999:80 --name ws-icon vlauciani/ws-icon:latest
| Type | Description |
|---|---|
circle | Circular icons |
square | Square icons with border |
triangle | Triangular icons |
pentagon | Pentagon icons |
hexagon | Hexagon icons |
star | 5-pointed star icons |
| Variable | Default | Description |
|---|---|---|
LOG_ENABLED | false | Enable/disable logging |
LOG_TO_STDOUT | true | Output logs to stdout (works only if LOG_ENABLED=true) |
LOG_FILE | /tmp/log/YYYY-MM-DD__ws_icon.log | Log file path (when LOG_TO_STDOUT=false) |
Example with logging:
docker run -d --rm -p 8999:80 \
-e LOG_ENABLED=true \
-e LOG_TO_STDOUT=true \
--name ws-icon \
vlauciani/ws-icon:latest
If you set LOG_ENABLED=true and LOG_TO_STDOUT=false and you want to view your log files outside the container, create log directory with full permissions:
mkdir /tmp/log
chmod 777 /tmp/log/
and mount it with: -v /tmp/log:/tmp/log. Example:
docker run -d --rm -p 8999:80 \
-e LOG_ENABLED=true \
-e LOG_TO_STDOUT=false \
-v /tmp/log:/tmp/log \
vlauciani/ws-icon:latest
FF0000)Run with live reload:
docker build -t vlauciani/ws-icon:latest .
docker run --rm -p 8999:80 \
-e LOG_ENABLED=true \
-e LOG_TO_STDOUT=true \
-v $(pwd):/app \
-v $(pwd)/log:/tmp/log \
--name ws-icon \
vlauciani/ws-icon:latest
Full interactive API documentation is available at: http://localhost:8999/
The legacy Swagger endpoint is still accessible at: http://localhost:8999/swagger/
Contributions are welcome! See the list of contributors:
MIT License - Copyright (c) 2025 Valentino Lauciani
Valentino Lauciani - vlauciani[at]gmail.com
Content type
Image
Digest
sha256:6c6d171d8…
Size
403.5 MB
Last updated
10 months ago
docker pull vlauciani/ws-icon