Update docker-compose.dev.yaml

This commit is contained in:
Andros Fenollosa 2021-10-21 22:43:31 +02:00 committed by GitHub
parent eea51e88b0
commit a8b8866735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,16 @@ version: '3.1'
services: services:
postgresql:
image: postgres
restart: "no"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: nombre-base-de-datos
ports:
- 5432:5432
django: django:
build: build:
context: ./ context: ./
@ -12,14 +22,14 @@ services:
- .:/usr/src/app/ - .:/usr/src/app/
environment: environment:
DEBUG: "True" DEBUG: "True"
ALLOWED_HOSTS: "" ALLOWED_HOSTS: "ejemplo.localhost"
SECRET_KEY: "" SECRET_KEY: "misecreto"
DB_ENGINE: "django.db.backends.sqlite3" DB_ENGINE: "django.db.backends.postgresql"
DB_NAME: "database.sqlite" DB_NAME: "nombre-base-de-datos"
DB_USER: "" DB_USER: "postgres"
DB_PASSWORD: "" DB_PASSWORD: "postgres"
DB_HOST: "" DB_HOST: "postgresql"
DB_PORT: "" DB_PORT: "5432"
DOMAIN: "ejemplo.localhost" DOMAIN: "ejemplo.localhost"
DOMAIN_URL: "http://ejemplo.localhost" DOMAIN_URL: "http://ejemplo.localhost"
STATIC_URL: "/static/" STATIC_URL: "/static/"
@ -34,6 +44,8 @@ services:
EMAIL_PASSWORD: "" EMAIL_PASSWORD: ""
expose: expose:
- 8000 - 8000
depends_on:
- postgresql
caddy: caddy:
image: caddy:alpine image: caddy:alpine