forked from FlorianCHA/Gsub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
24 lines (24 loc) · 937 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
24 lines (24 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
services:
gsub:
build:
context: .
dockerfile: Dockerfile
image: gsub:2.0.0
container_name: gsub
# Interface graphique : partage du socket X11 de l'hote (Linux).
# Avant de lancer : `xhost +local:docker` sur l'hote.
environment:
- DISPLAY=${DISPLAY}
# Identite de l'utilisateur hote : l'entrypoint abandonne les privileges
# root pour que les fichiers generes dans data/ lui appartiennent.
# Si non definies, l'entrypoint retombe sur le proprietaire du volume
# /data. Pour les fixer explicitement :
# HOST_UID=$(id -u) HOST_GID=$(id -g) docker compose up
- HOST_UID=${HOST_UID:-}
- HOST_GID=${HOST_GID:-}
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
# Repertoire de travail partage pour fournir les entrees / recuperer les sorties.
- ./data:/data
# Par defaut : GUI. Pour la CLI, voir README.docker.md.
command: ["gui"]