-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Share common docker-compose.yml
configurations (PROD and DEV enviroments)
#79
Draft
Raruto
wants to merge
10
commits into
dev
Choose a base branch
from
single-compose-file
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
20418cf
Share common `docker-compose.yml` configurations
Raruto a2a9f12
update dev instructions
Raruto e17a75d
Update portainer section
Raruto b54a207
Merge branch 'dev' into single-compose-file
Raruto 226648d
Merge branch 'dev' into single-compose-file
wlorenzetti 8b38846
disable `redis` service in docker-compose-dev.yml
Raruto 2801fe2
add `x-g3w-suite-logging` merge key
Raruto 827af02
remove `g3w-suite/overrides` bind mount for nginx service
Raruto 7ee5ee5
Merge branch 'dev' into single-compose-file
Raruto c33fe58
move `DISPLAY` and `QGIS_SERVER_PARALLEL_RENDERING` into `docker-comp…
Raruto File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,48 @@ | ||
version: "3" | ||
## HOW TO RUN: ## | ||
# | ||
# docker compose -f docker-compose.yml -f docker-compose-dev.yml up -d | ||
# | ||
version: "3.4" | ||
services: | ||
|
||
postgis: | ||
image: g3wsuite/postgis:11.0-2.5 | ||
ports: | ||
- "5439:5432" | ||
environment: | ||
- POSTGRES_DBNAME=${G3WSUITE_POSTGRES_DBNAME},data_testing,data_production | ||
- POSTGRES_USER=${G3WSUITE_POSTGRES_USER_LOCAL} | ||
- POSTGRES_PASS=${G3WSUITE_POSTGRES_PASS} | ||
- ALLOW_IP_RANGE=0.0.0.0/0 | ||
restart: "no" | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "200k" | ||
max-file: "10" | ||
restart: "no" # disable autorestart | ||
volumes: | ||
- g3wsuite-pg-data:/var/lib/postgresql | ||
healthcheck: | ||
interval: 60s | ||
timeout: 30s | ||
retries: 3 | ||
test: "pg_isready" | ||
networks: | ||
internal: | ||
aliases: | ||
- ${WEBGIS_PUBLIC_HOSTNAME} | ||
|
||
|
||
g3w-suite: | ||
image: g3wsuite/g3w-suite:dev | ||
environment: | ||
- G3WSUITE_TILECACHE_PATH | ||
- BITBUCKET_TOKEN | ||
- G3WSUITE_DEBUG=${G3WSUITE_DEBUG:-True} | ||
- G3WSUITE_GUNICORN_NUM_WORKERS=${G3WSUITE_GUNICORN_NUM_WORKERS:-1} | ||
- G3WSUITE_QDJANGO_SERVER_URL | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Check if the |
||
- G3WSUITE_POSTGRES_DBNAME | ||
- G3WSUITE_POSTGRES_USER | ||
- G3WSUITE_POSTGRES_USER_LOCAL | ||
- G3WSUITE_POSTGRES_PASS | ||
- G3WSUITE_POSTGRES_HOST | ||
- G3WSUITE_POSTGRES_PORT | ||
- G3WSUITE_ORS_API_ENDPOINT | ||
- G3WSUITE_ORS_API_KEY | ||
- G3WSUITE_DEBUG | ||
- TILESTACHE_CACHE_BUFFER_SIZE | ||
- TILESTACHE_CACHE_TOKEN | ||
- G3WSUITE_GUNICORN_NUM_WORKERS | ||
- G3WSUITE_GUNICORN_MAX_REQUESTS | ||
- G3WSUITE_GUNICORN_TIMEOUT | ||
- FRONTEND | ||
- PGSERVICEFILE | ||
- QGIS_OPTIONS_PATH=/shared-volume/ | ||
- QGIS_SERVER_LOG_FILE | ||
- QGIS_SERVER_LOG_LEVEL | ||
expose: | ||
- "8000" | ||
ports: | ||
- "8000:8000" | ||
restart: "no" | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "200k" | ||
max-file: "10" | ||
|
||
restart: "no" # disable autorestart | ||
volumes: | ||
- ${WEBGIS_DOCKER_SHARED_VOLUME}:/shared-volume | ||
- ${WEBGIS_DOCKER_SHARED_VOLUME}/node_modules:/code/node_modules | ||
- ./config/g3w-suite/overrides/static:/code/static:ro | ||
- ./config/g3w-suite/overrides/templates:/code/templates:ro | ||
- ./config/g3w-suite/settings_docker.py:/code/g3w-admin/base/settings/local_settings.py | ||
- ./scripts:/scripts | ||
- ${G3WSUITE_LOCAL_CODE_PATH}:/code | ||
- ./config/qgis/QGIS3.ini:/shared-volume/QGIS/QGIS3.ini | ||
entrypoint: /scripts/docker-entrypoint.sh | ||
|
||
entrypoint: /scripts/docker-entrypoint-dev.sh | ||
redis: | ||
deploy: | ||
replicas: 0 # disable redis service | ||
|
||
networks: | ||
internal: | ||
nginx: | ||
deploy: | ||
replicas: 0 # disable nginx service | ||
|
||
certbot: | ||
deploy: | ||
replicas: 0 # disable certbot service | ||
|
||
g3w-suite-consumer: | ||
deploy: | ||
replicas: 0 # disable huey service | ||
|
||
volumes: | ||
shared-volume: | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rewrite this in a better English