Skip to content

Commit

Permalink
Update compose config
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Feb 23, 2024
1 parent 88b1be7 commit 09ec670
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 2 deletions.
3 changes: 2 additions & 1 deletion compose/nominatim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ services:
dockerfile: Dockerfile
ports:
- '8080:8080'
- '5432:5432'
# - '5432:5432'
volumes:
- ../data/nominatim-data:/var/lib/postgresql/14/main
# - ../../Nominatim/nominatim/tokenizer/sanitizers:/usr/local/lib/nominatim/lib-python/nominatim/tokenizer/sanitizers
env_file:
- ../envs/.env.nominatim
restart: always
8 changes: 8 additions & 0 deletions compose/planet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ services:
- ../envs/.env.db
- ../envs/.env.db-utils
- ../envs/.env.cloudprovider
restart: always

######################################################
### Planet replication section
Expand All @@ -32,6 +33,7 @@ services:
- ../envs/.env.db
- ../envs/.env.db-utils
- ../envs/.env.cloudprovider
restart: always

#####################################################
## OSM full planet replication
Expand All @@ -48,6 +50,7 @@ services:
- ../envs/.env.db
- ../envs/.env.db-utils
- ../envs/.env.cloudprovider
restart: always

#####################################################
## Changeset replications
Expand All @@ -65,6 +68,7 @@ services:
- ../envs/.env.db
- ../envs/.env.db-utils
- ../envs/.env.cloudprovider
restart: always

######################################################
### NGINX container for serving files
Expand All @@ -87,3 +91,7 @@ services:
- '../data/changeset-replication-job-data:/usr/share/nginx/html/server/static-files/changesets'
# Development mode
# - ./../images/planet-files/:/usr/share/nginx/html/
restart: always
networks:
osm-seed:
driver: bridge
2 changes: 1 addition & 1 deletion compose/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ services:
image: memcached:latest
ports:
- '11211:11211'
restart: always
restart: always
19 changes: 19 additions & 0 deletions images/tasking-manager-web/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

FROM node:12 AS builder
RUN sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list
RUN sed -i 's|security.debian.org|archive.debian.org|g' /etc/apt/sources.list
RUN sed -i '/stretch-updates/d' /etc/apt/sources.list
RUN apt-get update && apt-get -y install apt-transport-https
RUN apt-get update && \
apt-get install -y git
WORKDIR /app
ENV GITSHA=951039f86938b9cc9d8b6986c4e5f3423a78e4d3
RUN git clone https://github.com/hotosm/tasking-manager.git /app
WORKDIR /app/frontend
RUN git checkout $GITSHA
RUN npm install && npm run build

FROM nginx:latest
COPY --from=builder /app/frontend/build /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
13 changes: 13 additions & 0 deletions images/tasking-manager-web/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Docker setup for Tasking Manager 4 API

### Configuration
1. Copy `./envs/.env.tasking-manager.example` to `./envs/.env.tasking-manager`
2. This setup doesn't come with a database container, so you'd have to standup your own. For now.
3. Supply appropirate environment variables, particularly OAuth keys and database credentials


### Build and run
* `cd tasking-manager-api`
* `docker build -t osmseed-tasking-manager-api:v1 .`
* `docker run --env-file ../.env-tasking-manager -p "5000:5000" -t osmseed-tasking-manager-api:v1`

0 comments on commit 09ec670

Please sign in to comment.