Created
May 23, 2019 13:13
-
-
Save foxmask/b85c86894150048e884ce01a91913d87 to your computer and use it in GitHub Desktop.
docker-compose new1
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: '2' | |
services: | |
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" | |
frontend: | |
image: foxmask/joplin-web:joplin-front | |
build: | |
context: . | |
dockerfile: Dockerfile-front | |
ports: | |
- "81:8080" |
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 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.txt |
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 | |
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/ /var/www/html | |
# COPY ./misc/nginx.conf /etc/nginx/conf.d/default.conf | |
#EXPOSE 81 | |
#CMD ["nginx", "-g", "daemon off;"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment