Skip to content

Commit

Permalink
Move and set DISPLAY environment variable into docker compose files. (#…
Browse files Browse the repository at this point in the history
…85)

Co-authored-by: wlorenzetti <[email protected]>
  • Loading branch information
wlorenzetti and wlorenzetti authored Nov 14, 2022
1 parent e5695a1 commit bcde250
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Editing module is active by default, to avoid simultaneous feature editing by tw
This locking system can remain active if users do not exit the editing state correctly, to avoid this it is advisable to activate a cron job on host machine that checks the features that have been locked for more than 4 hours and frees them:

```
0 */1 * * * docker exec -e DISPLAY=:99 g3w-suite-docker_g3w-suite_1 python3 /code/g3w-admin/manage.py check_features_locked
0 */1 * * * docker exec g3w-suite-docker_g3w-suite_1 python3 /code/g3w-admin/manage.py check_features_locked
```

## Front-end App
Expand Down
2 changes: 2 additions & 0 deletions docker-compose-consumer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ services:
g3w-suite:
image: g3wsuite/g3w-suite:dev
environment:
- DISPLAY=:99
- G3WSUITE_TILECACHE_PATH
- G3WSUITE_POSTGRES_DBNAME
- G3WSUITE_POSTGRES_USER
Expand Down Expand Up @@ -81,6 +82,7 @@ services:
g3w-suite-consumer:
image: g3wsuite/g3w-suite:dev
environment:
- DISPLAY=:99
- G3WSUITE_TILECACHE_PATH
- G3WSUITE_POSTGRES_DBNAME
- G3WSUITE_POSTGRES_USER
Expand Down
1 change: 1 addition & 0 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ services:
g3w-suite:
image: g3wsuite/g3w-suite:dev
environment:
- DISPLAY=:99
- G3WSUITE_TILECACHE_PATH
- G3WSUITE_QDJANGO_SERVER_URL
- G3WSUITE_POSTGRES_DBNAME
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ services:
g3w-suite:
image: g3wsuite/g3w-suite:dev
environment:
- DISPLAY=:99
- G3WSUITE_TILECACHE_PATH
- G3WSUITE_POSTGRES_DBNAME
- G3WSUITE_POSTGRES_USER
Expand Down

0 comments on commit bcde250

Please sign in to comment.