Created
December 12, 2018 14:13
-
-
Save RoySegall/a875e95f1270bb4b6609cea9b9dd3f50 to your computer and use it in GitHub Desktop.
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
version: "3" | |
volumes: | |
db-data: | |
external: false | |
services: | |
database: | |
image: postgres | |
volumes: | |
- db-data:/var/lib/postgresql/db-data | |
- ./database:/etc/cron.daily | |
client: | |
image: hasadna/open-pension-client | |
volumes: | |
- ./logs/nginx:/var/log/nginx | |
ports: | |
- "80:80" | |
environment: | |
- SERVICE_PORTS=80 | |
depends_on: | |
- server | |
server: | |
image: hasadna/open-pension-server | |
command: /bin/sh entrypoint.sh | |
volumes: | |
- ./logs/django:/home/app/server/logs | |
depends_on: | |
- database |
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
FROM node:latest as builder | |
ENV APP_NAME "client" | |
ENV APP_USER "app" | |
ENV HOME /home/$APP_USER | |
ENV APP_DIR $HOME/$APP_NAME | |
WORKDIR $APP_DIR | |
COPY . $APP_DIR | |
RUN npm install | |
RUN npm run build | |
FROM nginx:alpine | |
LABEL maintainer="http://www.hasadna.org.il/" | |
COPY --from=builder /home/app/dist /usr/share/nginx/html/ | |
COPY nginx/ /etc/nginx/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment