Compare commits
No commits in common. "120c8c13ad263bbb69564f1074cac2adbfd470d7" and "33a6fd156f20364d9458c6ce4758a7fa45357e86" have entirely different histories.
120c8c13ad
...
33a6fd156f
3 changed files with 0 additions and 64 deletions
|
@ -1,2 +0,0 @@
|
||||||
BAIKAL_VERSION=0.10.1-nginx
|
|
||||||
BAIKAL_DOMAIN=baikal.example.com
|
|
|
@ -1,37 +0,0 @@
|
||||||
# Baikal Docker Setup with Traefik
|
|
||||||
|
|
||||||
This guide provides instructions for deploying Baikal using Docker and Traefik as a reverse proxy. The setup includes securing the Baikal instance with HTTPS and configuring a trusted proxy.
|
|
||||||
|
|
||||||
## Prerequisites
|
|
||||||
- Docker and Docker Compose installed on your system
|
|
||||||
- Traefik configured as your reverse proxy
|
|
||||||
- A domain name pointing to your Baikal instance
|
|
||||||
|
|
||||||
## Environment Variables
|
|
||||||
Before deploying the container, create a `.env` file from the provided `.env-example` file and adjust the values as needed.
|
|
||||||
|
|
||||||
```sh
|
|
||||||
cp .env-example .env
|
|
||||||
nano .env
|
|
||||||
```
|
|
||||||
|
|
||||||
## Starting the Container
|
|
||||||
Once the `.env` file is configured, start the Baikal container using:
|
|
||||||
```sh
|
|
||||||
docker-compose up -d
|
|
||||||
```
|
|
||||||
|
|
||||||
## Configuring the Reverse Proxy
|
|
||||||
To enable proper proxy support in Baikal, update `data/config/configuration.yaml` with the following settings:
|
|
||||||
|
|
||||||
|
|
||||||
## Accessing Baikal
|
|
||||||
Once everything is set up, restart Baikal and it should be accessible via the configured domain:
|
|
||||||
```
|
|
||||||
https://baikal.example.com
|
|
||||||
```
|
|
||||||
|
|
||||||
If there are any issues, check the container logs with:
|
|
||||||
```sh
|
|
||||||
docker logs -f baikal
|
|
||||||
```
|
|
|
@ -1,25 +0,0 @@
|
||||||
baikal:
|
|
||||||
image: ckulka/baikal:${BAIKAL_VERSION:-0.10.1-nginx}
|
|
||||||
container_name: baikal
|
|
||||||
restart: always
|
|
||||||
networks:
|
|
||||||
- traefik
|
|
||||||
volumes:
|
|
||||||
- ./data/config:/var/www/baikal/config
|
|
||||||
- ./data/baikal-data:/var/www/baikal/Specific
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=true"
|
|
||||||
- "traefik.docker.network=traefik"
|
|
||||||
- "traefik.http.routers.baikal.entrypoints=http"
|
|
||||||
- "traefik.http.routers.baikal.rule=Host(`${BAIKAL_DOMAIN:?error}`)"
|
|
||||||
- "traefik.http.middlewares.baikal-https-redirect.redirectscheme.scheme=https"
|
|
||||||
- "traefik.http.routers.baikal.middlewares=caldav-https-redirect"
|
|
||||||
- "traefik.http.routers.baikal-secure.entrypoints=https"
|
|
||||||
- "traefik.http.routers.baikal-secure.rule=Host(`${BAIKAL_DOMAIN:?error}`)"
|
|
||||||
- "traefik.http.routers.baikal-secure.tls=true"
|
|
||||||
- "traefik.http.routers.baikal-secure.service=baikal"
|
|
||||||
- "traefik.http.services.baikal.loadbalancer.server.port=80"
|
|
||||||
|
|
||||||
networks:
|
|
||||||
traefik:
|
|
||||||
external: true
|
|
Loading…
Add table
Reference in a new issue