Skip to content

Instantly share code, notes, and snippets.

@baobuiquang
Created April 15, 2025 06:49
Show Gist options
  • Select an option

  • Save baobuiquang/d02a3fa6078ae719a63c503eaa9a1952 to your computer and use it in GitHub Desktop.

Select an option

Save baobuiquang/d02a3fa6078ae719a63c503eaa9a1952 to your computer and use it in GitHub Desktop.
List IMG docker images
List CON docker ps -a
Build IMG docker-compose build
Run CON detached docker-compose up -d
Build IMG + Run CON detached docker-compose up -d --build
Stop CON + Remove CON docker-compose down
Remove everything unused docker system prune -a --volumes -f
Remove everything 1. docker stop $(docker ps -a -q)
2. docker rm -f $(docker ps -a -q)
3. docker rmi -f $(docker images -q)
4. docker volume rm -f $(docker volume ls -q)
5. docker network rm $(docker network ls -q)
6. docker system prune -a --volumes -f
services:
forge:
build: .
ports:
- "1234:1234"
FROM python:3.10.10-slim-bullseye
RUN apt-get update && apt-get install -y git
WORKDIR /WORKDIR
RUN git clone https://github.com/OneLevelStudio/FORGE .
RUN printf 'export COMMANDLINE_ARGS="--api --listen --port 1234"' >> webui-user.sh
EXPOSE 1234
CMD ["bash", "-c", "source webui.sh -f"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment