-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#55 Added docker compose files for local development for Linux enviro…
…nment
- Loading branch information
1 parent
61649cc
commit 181e405
Showing
4 changed files
with
68 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# production environment | ||
FROM python:3.7-slim | ||
ENV PYTHONUNBUFFERED=1 | ||
RUN apt-get update && apt-get install nginx vim -y --no-install-recommends | ||
WORKDIR /code | ||
COPY requirements.txt /code/ | ||
RUN pip install -r requirements.txt --no-cache-dir | ||
EXPOSE 8000 | ||
STOPSIGNAL SIGTERM | ||
CMD ["/code/start_server.dev.sh"] |
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,47 @@ | ||
version: '3.8' | ||
|
||
services: | ||
cuelake-ui: | ||
build: | ||
context: ./ui | ||
dockerfile: Dockerfile.dev | ||
ports: | ||
- "3000:3000" | ||
stdin_open: true | ||
network_mode: "host" | ||
volumes: | ||
- ./ui:/app | ||
- /app/node_modules | ||
cuelake-api: | ||
build: | ||
context: ./api | ||
dockerfile: Dockerfile.dev | ||
environment: | ||
- ENVIRONMENT=dev | ||
ports: | ||
- "8000:8000" | ||
stdin_open: true | ||
depends_on: | ||
- postgres | ||
- redis | ||
network_mode: "host" | ||
volumes: | ||
- ./api:/code | ||
- C:/Users/Prabhat/laker-private/.kube:/.kube | ||
postgres: | ||
image: postgres:13 | ||
ports: | ||
- "5432:5432" | ||
environment: | ||
- PGDATA=/pg_data | ||
- POSTGRES_DB=cuelake | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=postgres | ||
volumes: | ||
- /pg_data | ||
network_mode: "host" | ||
redis: | ||
ports: | ||
- "6379:6379" | ||
image: "redis:alpine" | ||
network_mode: "host" |
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,10 @@ | ||
# dev environment | ||
FROM node:14-alpine | ||
WORKDIR /app | ||
ENV PATH /app/node_modules/.bin:$PATH | ||
COPY ./package.json /app/package.json | ||
RUN cat package.json | ||
RUN npm install | ||
RUN which npm | ||
EXPOSE 3000 | ||
CMD ["/usr/local/bin/npm", "start"] |