From 34f32d09d75e55a2cb7254e816eeec87e7dc40cc Mon Sep 17 00:00:00 2001 From: Thai Pangsakulyanont Date: Wed, 13 Jan 2021 22:57:26 +0700 Subject: [PATCH] Add docker-compose example --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index cff9c2a..4bba0ad 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,23 @@ docker run \ > **Important:** some software (like Firefox) need the shared memory to be increased, if you encounter any problem related to this you may use the `--shm-size` option. +### Using `docker-compose` + +```yaml +version: '3.8' +services: + xubuntu: + image: hectormolinero/xubuntu:latest + ports: + - 3322:3322/tcp + - 3389:3389/tcp + devices: + - /dev/dri:/dev/dri + shm_size: 2gb + tmpfs: + - /tmp +``` + ## Environment variables * `UNPRIVILEGED_USER_UID`: unprivileged user UID (`1000` by default).