mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
Add more instructions for running in Docker
This commit is contained in:
parent
5226f9ff4e
commit
d2763d2761
3 changed files with 74 additions and 18 deletions
35
README.md
35
README.md
|
|
@ -110,17 +110,40 @@ You can use the `help` command to see a list of available commands. These includ
|
|||
|
||||
## With Docker
|
||||
|
||||
> **Note**: Docker would probably work perfectly fine, but it has not been tested, and as such there are no instructions for its usage with Lysand.
|
||||
> **Note**: Docker is currently broken, as Bun with Prisma does not work well with Docker yet for unknown reasons. The following instructions are for when this is fixed.
|
||||
>
|
||||
> These instructions will probably also work with Podman and other container runtimes.
|
||||
|
||||
You can also run Lysand using Docker. To do so, you will need to build the Docker image:
|
||||
You can also run Lysand using Docker. To do so, you can:
|
||||
|
||||
1. Acquire the Postgres Dockerfile from above
|
||||
2. Use this repository's [`docker-compose.yml`](docker-compose.yml) file
|
||||
3. Create the `lysand-net` docker network:
|
||||
```bash
|
||||
# After cloning the repository
|
||||
cd lysand
|
||||
sudo docker compose build
|
||||
docker network create lysand-net
|
||||
```
|
||||
4. Run the following command:
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
The Docker build isn't ready for usage, so you will need to do things like running migrations and setting up the database manually.
|
||||
You may need root privileges to run Docker commands.
|
||||
|
||||
### Running CLI commands inside Docker
|
||||
|
||||
You can run CLI commands inside Docker using the following command:
|
||||
|
||||
```bash
|
||||
sudo docker exec -it lysand bun cli ...
|
||||
```
|
||||
|
||||
### Running migrations inside Docker
|
||||
|
||||
You can run migrations inside Docker using the following command (if needed):
|
||||
|
||||
```bash
|
||||
sudo docker exec -it lysand bun migrate
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue