The Telegram Docker container can be configured using environment variables and volumes.
DISPLAY: X11 display server connection string (e.g., unix$DISPLAY).PULSE_SERVER: path to PulseAudio server (e.g. unix:$XDG_RUNTIME_DIR/pulse/native)./tmp/.X11-unix:/tmp/.X11-unix:ro: X11 socket for display forwarding.$XDG_RUNTIME_DIR/pulse:$XDG_RUNTIME_DIR/pulse:ro: PulseAudio./etc/localtime:/etc/localtime:ro: Timezone (optional).telegram_cache:/cache: cache directory ($HOME/.cache).telegram_data:/data: telegram data directory ($HOME/.local/share/TelegramDesktop).$HOME/Downloads:/downloads: Downloads directory.docker run -d \
--name telegram \
-e DISPLAY=unix${DISPLAY} \
-e PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native \
--device /dev/dri:/dev/dri \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-v ${XDG_RUNTIME_DIR}/pulse:${XDG_RUNTIME_DIR}/pulse:ro \
-v /etc/localtime:/etc/localtime:ro \
-v telegram_cache:/cache \
-v telegram_data:/data \
-v ${HOME}/Downloads:/downloads \
rshmyrev/telegram
version: "3.9"
name: telegram
services:
telegram:
image: rshmyrev/telegram
environment:
- DISPLAY=unix$DISPLAY # X11
- PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native # PulseAudio
devices:
- /dev/dri
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:ro # X11
- $XDG_RUNTIME_DIR/pulse:$XDG_RUNTIME_DIR/pulse:ro # PulseAudio
- /etc/localtime:/etc/localtime:ro # timezone (optional)
- cache:/cache
- $HOME/.local/share/TelegramDesktop:/data
- $HOME/Downloads:/downloads
volumes:
cache:
docker compose up -d
This project is licensed under the MIT License.
Content type
Image
Digest
sha256:c069be1dc…
Size
294.1 MB
Last updated
about 2 years ago
docker pull rshmyrev/telegram