hippofish/dev/docs/container.md
naskya dff0cb799c
docs: update documents and config files
Co-authored-by: sup39 <dev@sup39.dev>
2024-03-19 00:21:02 +09:00

1.5 KiB

Set up a fully-containerized development environment

Prerequisites

Start up the environment

  1. Download the dev/container directory and execute chmod +x docker-entrypoint.sh
    • Alternatively, you can use git clone https://firefish.dev/firefish/firefish.git && cd firefish/dev/container, although this will clone the entire repository.
  2. Edit docker-compose.yml and set URL to the URL you want to use (or leave it as http://localhost:3030)
  3. Run docker compose up
    • This will build the environment, install dependencies and prepare the needed config files.
    • If you use Podman, you should run podman-compose up instead.
  4. Wait until the following message shows up
    DONE *  [core boot]     All workers started
    DONE *  [core boot]     Now listening on port 3030 on https://your_firefish_url.example.com
    
  5. A fresh Firefish environment is created on the URL you have set!

When you want to restart the dev server, you just need to terminate the process (a.k.a. press Ctrl+C) and run docker compose up again.