Skip to content

Commit a08ff20

Browse files
Merge pull request #96 from geoCML/password-xpra
Set XPRA password with env variable
2 parents b3b326b + 1d1f21a commit a08ff20

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfiles/Dockerfile.geocml-desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ RUN rm -rf $HOME/.ansible && apt purge -y ansible*
3131
RUN apt clean autoclean && apt autoremove -y && rm -rf /var/lib/{apt,dpkg,cache,log}/
3232

3333
USER user
34-
CMD ["xpra", "start", ":100", "--start-child=/usr/bin/qgis /Persistence/geocml-project.qgz", "--bind-tcp=0.0.0.0:10000", "--no-daemon", "--no-notifications", "--no-mdns", "--no-pulseaudio", "--exit-with-children"]
34+
CMD ["xpra", "start", ":100", "--start-child=/usr/bin/qgis /Persistence/geocml-project.qgz", "--bind-tcp=0.0.0.0:10000", "--auth=password,value=$GEOCML_DESKTOP_PASSWORD", "--no-daemon", "--no-notifications", "--no-mdns", "--no-pulseaudio", "--exit-with-children"]

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ services:
3030
source: ./persistence-layer
3131
target: /Persistence
3232
hostname: geocml-desktop
33+
environment:
34+
GEOCML_DESKTOP_PASSWORD: ${GEOCML_DESKTOP_PASSWORD}
3335
networks:
3436
- geocml-network
3537
geocml-postgres:

0 commit comments

Comments
 (0)