mirror of
https://github.com/lemeow125/DocManagerBackend.git
synced 2025-01-18 09:03:00 +08:00
32 lines
879 B
YAML
32 lines
879 B
YAML
services:
|
|
django:
|
|
env_file: .env
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: git.06222001.xyz/keannu125/docmanagerbackend:dev
|
|
ports:
|
|
- "${BACKEND_PORT}:8000"
|
|
environment:
|
|
- PYTHONBUFFERED=1
|
|
volumes:
|
|
# File Watcher is broken in Windows Docker since Docker does not notify container about any file changes you make from Windows
|
|
# If running on Windows, use a shared volume instead of bind mount
|
|
- .:/app
|
|
|
|
# SMTP Server
|
|
inbucket:
|
|
image: inbucket/inbucket:latest
|
|
ports:
|
|
- "8025:8025"
|
|
environment:
|
|
- INBUCKET_LOGLEVEL=error
|
|
- INBUCKET_MAILBOXNAMING=domain
|
|
- INBUCKET_SMTP_ADDR=0.0.0.0:1025
|
|
- INBUCKET_SMTP_MAXRECIPIENTS=1000
|
|
- INBUCKET_WEB_ADDR=0.0.0.0:8025
|
|
- INBUCKET_STORAGE_TYPE=memory
|
|
- INBUCKET_STORAGE_MAILBOXMSGCAP=2000
|
|
|
|
volumes:
|
|
db-data:
|