Skip to content

Instantly share code, notes, and snippets.

@LuisQBlanco
Last active May 3, 2020 01:07
Show Gist options
  • Save LuisQBlanco/87637dcaba28d470144a6bb69710233e to your computer and use it in GitHub Desktop.
Save LuisQBlanco/87637dcaba28d470144a6bb69710233e to your computer and use it in GitHub Desktop.
Snnipets in python django and others
version: "3.7"
services:
billdjpostgtest1:
build:
context: .
dockerfile: Dockerfile
ports:
- 9100:9100
volumes:
- ./app:/billdjpostgtest1
command:
# sh -c "python manage.py wait_for_db &&
# python manage.py migrate &&
# python manage.py runserver 0.0.0.0:8000"
# command:
sleep infinity
# python manage.py wait_for_db &&
# python manage.py migrate &&
# python manage.py runserver 0.0.0.0:8000
# command:
# WORKDIR /app
# sh -c "python manage.py runserver 0.0.0.0:8000"
environment:
- DB_HOST=db
- DB_NAME=app
- DB_USER=postgres
- DB_PASS=supersecretpassword
depends_on:
- db
# links:
# - db
db:
image: postgres:10-alpine
# restart: unless-stopped
# ports:
# - 5430:5430
volumes:
# - ./pgdata:/var/lib/postgresql/data
# - ./postgres-data:/var/lib/postgresql/data:cached
# /var/lib/postgresql/data
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=app
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=supersecretpassword
volumes:
postgres-data:

this is a test

Headings 1

Headings 2

Headings 3

Headings 4

Headings 5
Headings 6

This Text is italic

This text is italic

This Text is Strong

This text is Strong

This test is Strikethrough



* Show character *

This is a quote

Traversy Media

Traversy Media

  • Item 1
  • Item 2
  • Item 3
    • Nested Item 1
  1. Item 1
  2. Item 1
  3. Item 3
  4. Item 4
    1. Item 4.1

<p>This is a paragraph</p>

Markdown Logo

    npm install


    npm start
function add(num1, num2) {
    return num1 + num2;
}
def add(num1,num2):
    return num1 + num2
Name Email
John Doe john@gmail.com
John Doe john@gmail.com
  • Task 1
  • Task 2
  • Task 3

Information from: Markdown Crash Course

django new project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment