Skip to content

Commit

Permalink
Update osmcha-deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Dec 15, 2023
1 parent 1c243bd commit 5fa51eb
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 402 deletions.
30 changes: 7 additions & 23 deletions compose/osmcha.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
version: '3'
version: '3.8'
services:
web:
platform: linux/amd64
image: developmentseed/osmseed-osmcha-web:v6
image: developmentseed/osmseed-osmcha-web:v7
build:
context: ../images/osmcha-web
dockerfile: Dockerfile
# command: >
# /bin/bash -c "
# ./start.sh
# "
env_file:
- ../envs/.env.osmcha
volumes:
Expand All @@ -28,25 +24,13 @@ services:
- ../envs/.env.osmcha
api:
platform: linux/amd64
image: developmentseed/osmseed-osmcha-api:v3
build:
context: ../images/osmcha-api
dockerfile: Dockerfile
image: ghcr.io/willemarcel/osmcha-django:b1f4e6afc90e08707cadc4d74580632ca3b93dd2
# build:
# context: ../images/osmcha-api
# dockerfile: Dockerfile
ports:
- '3000:3000'
- '5000:5000'
env_file:
- ../envs/.env.osmcha
volumes:
- ../data/osmcha/staticfiles:/staticfiles
nginx:
platform: linux/amd64
image: developmentseed/osmseed-osmcha-nginx:v1
build:
context: ../images/osmcha-nginx
dockerfile: Dockerfile
ports:
- '80:80'
env_file:
- ../envs/.env.osmcha
volumes:
- ../data/osmcha/staticfiles:/staticfiles
6 changes: 0 additions & 6 deletions images/osmcha-api/Dockerfile

This file was deleted.

59 changes: 0 additions & 59 deletions images/osmcha-api/entrypoint.sh

This file was deleted.

5 changes: 0 additions & 5 deletions images/osmcha-nginx/Dockerfile

This file was deleted.

16 changes: 0 additions & 16 deletions images/osmcha-nginx/config/mime.types

This file was deleted.

55 changes: 0 additions & 55 deletions images/osmcha-nginx/config/nginx.conf

This file was deleted.

8 changes: 5 additions & 3 deletions images/osmcha-web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ FROM node:16-slim as builder
ENV DEBIAN_FRONTEND noninteractive

ARG BUILD_ENV=prod
ARG OSMCHA_URL=https://osmcha-staging.openhistoricalmap.org

RUN apt-get update && apt-get install -y git

RUN mkdir /app
WORKDIR /app
RUN git clone https://github.com/sunu/osmcha-frontend.git /app
RUN yarn install

ENV REACT_APP_PRODUCTION_API_URL /api/v1
RUN sed -i "s|https://osmcha.org|$OSMCHA_URL|g" package.json
RUN yarn build:${BUILD_ENV}
COPY start.sh .
CMD [ "./start.sh" ]

FROM nginx:alpine
COPY --from=builder /app/build /assets
14 changes: 0 additions & 14 deletions images/osmcha-web/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions images/osmcha-web/config/mime.types

This file was deleted.

55 changes: 0 additions & 55 deletions images/osmcha-web/config/nginx.conf

This file was deleted.

Loading

0 comments on commit 5fa51eb

Please sign in to comment.