2021-04-01 09:48:35 +02:00
|
|
|
version: '3.1'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres
|
2021-04-07 08:56:57 +02:00
|
|
|
restart: unless-stopped
|
2021-04-01 09:48:35 +02:00
|
|
|
volumes:
|
|
|
|
- ./../postgres_data:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
POSTGRES_DB: api
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
expose:
|
|
|
|
- 5432
|
|
|
|
|
|
|
|
django:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./Dockerfiles/django/Dockerfile
|
2021-04-07 08:56:57 +02:00
|
|
|
restart: unless-stopped
|
2021-04-01 09:48:35 +02:00
|
|
|
entrypoint: /django-launcher.dev.sh
|
|
|
|
volumes:
|
|
|
|
- .:/usr/src/app/
|
|
|
|
environment:
|
|
|
|
DEBUG: "True"
|
|
|
|
ALLOWED_HOSTS: ""
|
|
|
|
SECRET_KEY: ""
|
|
|
|
DB_HOST: db
|
|
|
|
DB_NAME: ""
|
|
|
|
DB_USER: "postgres"
|
|
|
|
DB_PASSWORD: "postgres"
|
|
|
|
DB_PORT: "5432"
|
|
|
|
DOMAIN: "api.localhost"
|
|
|
|
DOMAIN_URL: "http://api.localhost"
|
|
|
|
STATIC_URL: "/static/"
|
2021-04-21 16:55:33 +02:00
|
|
|
STATIC_ROOT: "static"
|
2021-04-01 09:48:35 +02:00
|
|
|
MEDIA_URL: "/media/"
|
|
|
|
EMAIL_HOST: "mailhog"
|
|
|
|
EMAIL_USE_TLS: "False"
|
|
|
|
EMAIL_PORT: "1025"
|
|
|
|
EMAIL_USER: ""
|
|
|
|
EMAIL_PASSWORD: ""
|
|
|
|
expose:
|
|
|
|
- 8000
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
caddy:
|
|
|
|
image: caddy:alpine
|
2021-04-07 08:56:57 +02:00
|
|
|
restart: unless-stopped
|
2021-04-01 09:48:35 +02:00
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
volumes:
|
2021-04-16 18:35:06 +02:00
|
|
|
- ./Caddyfile.dev:/etc/caddy/Caddyfile
|
2021-04-01 09:48:35 +02:00
|
|
|
- ./../caddy_data:/data
|
|
|
|
- .:/usr/src/app/
|
|
|
|
depends_on:
|
|
|
|
- django
|
|
|
|
|
|
|
|
mailhog:
|
|
|
|
image: mailhog/mailhog:latest
|
2021-04-07 08:56:57 +02:00
|
|
|
restart: unless-stopped
|
2021-04-01 09:48:35 +02:00
|
|
|
expose:
|
|
|
|
- 1025:1025
|
|
|
|
ports:
|
|
|
|
- 8025:8025
|