Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
install:docker [2021/02/22 15:18] – [Ports] hubinstall:docker [2022/09/08 19:30] – [Editing Content] tracker1
Line 1: Line 1:
-====== Docker ======+====== Install Synchronet on Docker ======
  
  
-[[http://wiki.synchro.net/|Synchronet]] is built from *[[https://gitlab.synchro.net/main/sbbs|source]]via *[[https://github.com/bbs-io/synchronet-docker|bbs-io/synchronet-docker on github]]*.+**[[https://hub.docker.com/repository/docker/bbsio/synchronet/general|Synchronet on Docker Hub]]** images are built from [[https://gitlab.synchro.net/main/sbbs|source]] via [[https://github.com/bbs-io/synchronet-docker|bbs-io/synchronet-docker on github]].  Images are build for x86_64, armv7 and arm64.
  
 ==== Tags ==== ==== Tags ====
Line 15: Line 15:
  
 If you are running Windows, it is recommended that you first install WSL2, then Docker Desktop, configured for WSL2 and doing your volume mounts from inside WSL2 (such as with Ubuntu).  VS Code with WSL Remote extension will make editing much easier to work with.  Note: you can access your WSL2 instances in explorer via `\\wsl$`.  You may want to add your SBBS volume directory to your Quick access shortcuts. If you are running Windows, it is recommended that you first install WSL2, then Docker Desktop, configured for WSL2 and doing your volume mounts from inside WSL2 (such as with Ubuntu).  VS Code with WSL Remote extension will make editing much easier to work with.  Note: you can access your WSL2 instances in explorer via `\\wsl$`.  You may want to add your SBBS volume directory to your Quick access shortcuts.
- 
  
 ===== Running ===== ===== Running =====
  
-For your first time running Synchronet (fresh install), you should prepare the directories for volume mounting.+The easiest way to get running is with docker-compose.
  
-    sudo mkdir -p /sbbs/backup +    mkdir ~/sbbs 
-    sudo mkdir -p /sbbs/ctrl +    cd ~/sbbs 
-    sudo mkdir -p /sbbs/text +    wget -O docker-compose.yml https://raw.githubusercontent.com/bbs-io/synchronet-docker/master/docker-compose.yml 
-    sudo mkdir -/sbbs/web +    docker-compose up -d 
-    sudo mkdir -p /sbbs/data +    sudo chmod -R a+rwX ./*
-    sudo mkdir -/sbbs/fido +
-    sudo mkdir -/sbbs/xtrn +
-    sudo mkdir -p /sbbs/mods +
-    sudo mkdir -p /sbbs/nodes +
-    sudo chmod a+rwX /sbbs+
  
-If upgrading from a previous run, you should pull the latest release.+To shutdown:
  
-    docker pull bbsio/synchronet:latest+   docker-compose down
  
 +To get a bash prompt inside the running container:
  
-From here, you can start sbbs: +    docker exec -it sbbs bash 
- +     
-    docker run -d --restart=unless-stopped \ +To run scfg:
-      --name sbbs \ +
-      -h sbbs \ +
-      -v /sbbs/backup:/backup +
-      -v /sbbs/ctrl:/sbbs/ctrl +
-      -v /sbbs/text:/sbbs/text +
-      -v /sbbs/web:/sbbs/web +
-      -v /sbbs/data:/sbbs/data +
-      -v /sbbs/fido:/sbbs/fido +
-      -v /sbbs/xtrn:/sbbs/xtrn +
-      -v /sbbs/mods:/sbbs/mods +
-      -v /sbbs/nodes:/sbbs/nodes +
-      -p 23:23 +
-      -p 80:80 +
-      ...repeat for all service ports... +
-      bbsio/synchronet:latest +
- +
- +
-===== Shutting Down ===== +
- +
- +
-To shut down and remove an existing instance, such as before running a new version. +
- +
-    docker rm --force sbbs+
  
 +    docker exec -it sbbs scfg
  
 ===== Editing Content ===== ===== Editing Content =====
Line 71: Line 44:
     sudo chmod a+rwX /sbbs     sudo chmod a+rwX /sbbs
  
-or 
- 
-    docker run -i sbbs sbbs-access 
  
 ===== Volumes ===== ===== Volumes =====
Line 91: Line 61:
  
 ===== Ports ===== ===== Ports =====
- 
  
 Synchronet is preconfigured for the following services/ports, see `/sbbs/ctrl/sbbs.ini` and `/sbbs/ctrl/services.ini` for additional configuration. Synchronet is preconfigured for the following services/ports, see `/sbbs/ctrl/sbbs.ini` and `/sbbs/ctrl/services.ini` for additional configuration.
Line 130: Line 99:
 ===== See Also ===== ===== See Also =====
   * [[:install:|install index]]   * [[:install:|install index]]
 +  * [[howto:docker|How to Setup Docker on Ubuntu]]
  
 {{tag>}} {{tag>}}
  
install/docker.txt · Last modified: 2022/09/08 19:42 by tracker1
Back to top
CC Attribution 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0