First, create a few volumes so that state is persisted across restarts:
docker volume create nats1
docker volume create nats2
docker volume create nats3
Now create a docker-compose.yaml
with the following:
First, create a few volumes so that state is persisted across restarts:
docker volume create nats1
docker volume create nats2
docker volume create nats3
Now create a docker-compose.yaml
with the following:
from typing import List, Optional | |
from django import forms | |
from django.db.models import Model, QuerySet | |
from django.utils.functional import cached_property | |
from wagtail.core.blocks import FieldBlock | |
from wagtail.core.utils import resolve_model_string | |
from dal_select2.widgets import ModelSelect2, ModelSelect2Multiple |
/* | |
* =================================================== | |
* django-filter | |
* =================================================== | |
*/ | |
.filter-form-header { | |
padding: 0; | |
h2 { | |
background-color: #fafafa; |
#!/usr/bin/env python | |
import sys | |
import os | |
import re | |
import subprocess | |
def git(args, **kwargs): | |
environ = os.environ.copy() | |
if 'repo' in kwargs: |
==== SNIP ==== | |
class DistanceSerializer(serializers.Serializer): | |
km = serializers.FloatField() | |
m = serializers.FloatField() | |
mi = serializers.FloatField() | |
ft = serializers.FloatField() | |
class SearchResultSerializer(serializers.Serializer): |