semwai / django-vue-postgre

example app for docker-compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

backend

docker-compose run web django-admin startproject base server

frontend

docker-compose run client vue init webpack-simple .

Usage

docker-compose up

Problem

The django server starts up at the same time as the database starts. The database is not available and the server cannot receive a connection. Solution: reboot the server container.

docker ps

find like 81a2b461765e django-vue-postgre_server and

docker restart 81a2b461765e

About

example app for docker-compose


Languages

Language:Python 60.7%Language:JavaScript 18.8%Language:Vue 14.8%Language:Dockerfile 3.5%Language:HTML 2.2%