Skip to content

Instantly share code, notes, and snippets.

@foxmask
Last active May 21, 2019 19:11
Show Gist options
  • Save foxmask/0cf252d76ce3058fec4d804f1a46ef4b to your computer and use it in GitHub Desktop.
Save foxmask/0cf252d76ce3058fec4d804f1a46ef4b to your computer and use it in GitHub Desktop.
docker-compose
version: '3'
services:
frontend:
image: foxmask/joplin-web:joplin-front
build:
context: .
dockerfile: Dockerfile-front
links:
- backend
ports:
- "8080:8080"
backend:
image: foxmask/joplin-web:joplin-back
build:
context: .
dockerfile: Dockerfile-back
environment:
- TZ=Europe/Paris
command: gunicorn joplin_web.wsgi -w 4 --preload --log-file - --access-logfile - --bind 0.0.0.0:8001
ports:
- "8001:8001"
FROM python:3.6
ENV PYTHONUNBUFFERED 1
RUN mkdir /app/
COPY . /app
WORKDIR /app/
RUN apt-get update && apt-get install -y sqlite3
RUN pip install -r requirements-docker.txt
FROM node:latest
RUN mkdir /app/
COPY . /app/
WORKDIR /app/joplin-vue/
RUN npm install
RUN npm run build
#FROM nginx:latest
#COPY --from=0 /app/joplin-vue/dist/ /usr/share/nginx/html/
#COPY ./misc/nginx.conf /etc/nginx/conf.d/default.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment