Skip to content

blesscat/froggy-service

 
 

Repository files navigation

Froggy's service

Project setup using cookiecutter-django-vue

Development

Create your own .env file at root, e.g. using .env.example:

$ sudo cp .env.example .env

Use --build to rebuild image, -d to run containers in the background :

$ docker-compose up --build

Use -v to clean volume while stop containers:

$ docker-compose down -v

Run production:

$ docker-compose -f docker-compose-prod.yml up --build
$ docker-compose -f docker-compose-prod.yml down -v

Base on your operating system, missing bindings might happen:

$ docker-compose up --build
...
Node Sass could not find a binding for your current environment: Linux/musl 64-bit with Node.js 10.x

Try mounting container's node_module to volume with a different name, e.g. changing docker-compose.yml:

volumes:
  node_modules_volume:

frontend:
  image: node:10-alpine
  command: npm run serve
  volumes:
    - ./.env:/app/.env:ro
    - ./frontend:/app
    - node_modules_volume:/usr/src/app/node_modules
  working_dir: /app
  restart: on-failure

See: Docker ALPINE Linux throws node-sass missing binding error

Architecture

Architecture diagram

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 60.1%
  • Vue 31.4%
  • HTML 3.4%
  • JavaScript 2.7%
  • CSS 1.0%
  • Shell 1.0%
  • Dockerfile 0.4%