-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Create a version of TM with sandboxed OSM for training data generation #6326
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f53a0c8
build: remove replicas from migration container (avoid corruption)
spwoodcock c8b7f89
build: update dev setup for frontend and backend hotreload
spwoodcock 15e2e25
build: add docker setup for empty openstreetmap local service
spwoodcock 741e746
fix: add OSM_SERVER_URL_BACKEND variable for connecting to localhost osm
spwoodcock 88b433c
build: move osm build to osm-sandbox repo, compose file here
spwoodcock File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
version: "3" | ||
|
||
networks: | ||
tm-net: | ||
name: tm-net | ||
|
||
volumes: | ||
osm-tmp: | ||
osm-storage: | ||
osm-db-data: | ||
certs: | ||
certbot_data: | ||
|
||
services: | ||
services: | ||
proxy: | ||
image: "ghcr.io/hotosm/osm-sandbox/proxy:2024-04-29" | ||
profiles: [""] | ||
depends_on: | ||
osm: | ||
condition: service_started | ||
ports: | ||
- ${OSM_DEV_PORT:-4433}:80 | ||
networks: | ||
- tm-net | ||
restart: "unless-stopped" | ||
|
||
proxy-ssl: | ||
image: "ghcr.io/hotosm/osm-sandbox/proxy:latest" | ||
profiles: [public] | ||
depends_on: | ||
osm: | ||
condition: service_started | ||
certbot: | ||
condition: service_completed_successfully | ||
volumes: | ||
- certs:/etc/letsencrypt | ||
- certbot_data:/var/www/certbot | ||
environment: | ||
DOMAIN: ${DOMAIN} | ||
ports: | ||
- 80:80 | ||
- 443:443 | ||
networks: | ||
- tm-net | ||
restart: "unless-stopped" | ||
|
||
osm: | ||
image: ghcr.io/hotosm/osm-sandbox:2024-04-29 | ||
environment: | ||
PROTOCOL: http${DOMAIN:+s} | ||
DOMAIN: ${DOMAIN:-127.0.0.1:4433} | ||
ADMIN_EMAIL: ${ADMIN_EMAIL:-admin@hotosm.org} | ||
ADMIN_PASS: ${ADMIN_PASS:-Password1234} | ||
ID_EDITOR_REDIRECT_URI: http${DOMAIN:+s}://${DOMAIN:-127.0.0.1:4433} | ||
volumes: | ||
# Mount a tmp directory that will persist between runs | ||
- osm-tmp:/app/tmp | ||
# Mount a storage directory that will persist between runs | ||
- osm-storage:/app/storage | ||
# Mount local setting overrides | ||
# - ./settings.local.yml:/app/config/settings.local.yml:ro | ||
tmpfs: | ||
/tmp/pids/ | ||
networks: | ||
- tm-net | ||
depends_on: | ||
osm-db: | ||
condition: service_healthy | ||
restart: unless-stopped | ||
|
||
osm-db: | ||
image: docker.io/postgres:14 | ||
environment: | ||
POSTGRES_DB: openstreetmap | ||
POSTGRES_PASSWORD: openstreetmap | ||
POSTGRES_USER: openstreetmap | ||
volumes: | ||
- osm-db-data:/var/lib/postgresql/data | ||
networks: | ||
- tm-net | ||
restart: unless-stopped | ||
healthcheck: | ||
test: pg_isready -U openstreetmap -d openstreetmap | ||
start_period: 5s | ||
interval: 10s | ||
timeout: 5s | ||
retries: 3 | ||
|
||
mail: | ||
image: "ixdotai/smtp:v0.5.2" | ||
volumes: | ||
- ./rsa.private:/etc/exim4/dkim.key.temp:ro | ||
environment: | ||
- MAILNAME=${DOMAIN:-hotosm.org} | ||
- DKIM_KEY_PATH=/etc/exim4/dkim.key.temp | ||
networks: | ||
- tm-net | ||
restart: unless-stopped | ||
|
||
certbot: | ||
image: "ghcr.io/hotosm/osm-sandbox/proxy:certs-init" | ||
profiles: [public] | ||
volumes: | ||
- certs:/etc/letsencrypt | ||
- certbot_data:/var/www/certbot | ||
environment: | ||
DOMAIN: ${DOMAIN} | ||
CERT_EMAIL: ${CERT_EMAIL} | ||
ports: | ||
- 80:80 | ||
- 443:443 | ||
networks: | ||
- osm-net | ||
restart: "on-failure:2" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
FROM node:16 | ||
|
||
ENV CHOKIDAR_USEPOLLING=true | ||
WORKDIR /usr/src/app | ||
|
||
COPY ./frontend . | ||
|
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.
What is this file?
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.
It's a file required by the smtp service (https://github.com/ix-ai/smtp) - it's empty