Update docker-compose.dev.yaml
This commit is contained in:
parent
057d721a71
commit
56d82dc851
@ -2,17 +2,6 @@ version: '3.1'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
db:
|
|
||||||
image: postgres
|
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
|
||||||
- ./../postgres_data:/var/lib/postgresql/data
|
|
||||||
environment:
|
|
||||||
POSTGRES_DB: api
|
|
||||||
POSTGRES_PASSWORD: postgres
|
|
||||||
expose:
|
|
||||||
- 5432
|
|
||||||
|
|
||||||
django:
|
django:
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
@ -25,11 +14,7 @@ services:
|
|||||||
DEBUG: "True"
|
DEBUG: "True"
|
||||||
ALLOWED_HOSTS: ""
|
ALLOWED_HOSTS: ""
|
||||||
SECRET_KEY: ""
|
SECRET_KEY: ""
|
||||||
DB_HOST: db
|
DB: "database.sqlite"
|
||||||
DB_NAME: ""
|
|
||||||
DB_USER: "postgres"
|
|
||||||
DB_PASSWORD: "postgres"
|
|
||||||
DB_PORT: "5432"
|
|
||||||
DOMAIN: "api.localhost"
|
DOMAIN: "api.localhost"
|
||||||
DOMAIN_URL: "http://api.localhost"
|
DOMAIN_URL: "http://api.localhost"
|
||||||
STATIC_URL: "/static/"
|
STATIC_URL: "/static/"
|
||||||
@ -42,8 +27,6 @@ services:
|
|||||||
EMAIL_PASSWORD: ""
|
EMAIL_PASSWORD: ""
|
||||||
expose:
|
expose:
|
||||||
- 8000
|
- 8000
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
|
|
||||||
caddy:
|
caddy:
|
||||||
image: caddy:alpine
|
image: caddy:alpine
|
||||||
|
Loading…
Reference in New Issue
Block a user