etebase-docker/README.md

39 lines
1.0 KiB
Markdown
Raw Permalink Normal View History

2024-09-02 22:51:51 +02:00
# EteBase Docker
2024-09-02 22:46:40 +02:00
Run Etebase Server within Docker Container
## Setup Instructions
**Docker Run** (not recommended):
```console
$ docker run -d --name "etebase" -v ./data:/opt/etebase-data -p 8080:80 drmaxnix/etebase
```
**Docker Compose** (recommended):
```yaml
services:
main:
image: drmaxnix/etebase
restart: unless-stopped
volumes:
- ./data:/opt/etebase-data
ports:
- "8080:80"
```
```console
$ docker compose up -d
```
2024-09-07 13:30:32 +02:00
> [!TIP]
> For both variants, persistent config files and user data will be stored in the `./data` directory. Feel free to change this to your needs.
2024-09-02 22:46:40 +02:00
2024-09-07 13:30:32 +02:00
> [!IMPORTANT]
> With this setup, the server will publicly listen on port 8080 via unencrypted http. When using in production, make sure to use a reverse proxy to add ssl functionality!
2024-09-02 22:46:40 +02:00
## User Management
Create initial admin account:
```console
$ docker compose exec main .venv/bin/python3 ./manage.py createsuperuser
```
2024-09-07 13:30:32 +02:00
> [!NOTE]
> If you are using docker run, replace `docker compose exec main` with `docker exec -it etebase`.