django-template/docker-compose.staging.yaml

77 lines
1.5 KiB
YAML
Raw Normal View History

2021-04-07 09:00:29 +02:00
version: '3.1'
services:
2021-10-21 14:58:56 +02:00
postgresql:
image: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: sapps
expose:
- 5432
2021-04-07 09:00:29 +02:00
django:
2021-07-05 11:42:30 +02:00
build:
context: ./
2021-07-05 11:45:47 +02:00
dockerfile: ./Dockerfiles/django/Dockerfile
2021-04-07 09:00:29 +02:00
restart: always
entrypoint: /django-launcher.dev.sh
volumes:
- .:/usr/src/app/
environment:
DEBUG: "True"
2021-04-16 18:35:06 +02:00
ALLOWED_HOSTS: ""
SECRET_KEY: "secret"
2021-10-21 14:55:00 +02:00
DB_ENGINE: "django.db.backends.postgresql"
DB_NAME: "sapps"
DB_USER: "postgres"
DB_PASSWORD: "postgres"
DB_HOST: "postgresql"
DB_PORT: "5432"
DOMAIN: "ejemplo.com"
DOMAIN_URL: "https://ejemplo.com"
2021-04-07 09:00:29 +02:00
STATIC_URL: "/static/"
2021-04-21 16:57:09 +02:00
STATIC_ROOT: "static"
2021-04-07 09:00:29 +02:00
MEDIA_URL: "/media/"
2021-08-26 18:17:55 +02:00
REDIS_HOST: "redis"
REDIS_PORT: "6379"
2021-04-16 18:35:06 +02:00
EMAIL_HOST: ""
EMAIL_USE_TLS: "True"
EMAIL_PORT: "2525"
2021-04-07 09:00:29 +02:00
EMAIL_USER: ""
EMAIL_PASSWORD: ""
expose:
- 8000
2021-10-21 14:58:56 +02:00
depends_on:
- postgresql
2021-04-07 09:00:29 +02:00
caddy:
image: caddy:alpine
restart: always
ports:
- 80:80
- 443:443
volumes:
- .:/usr/src/app/
2021-04-16 18:35:06 +02:00
- ./Caddyfile.staging:/etc/caddy/Caddyfile
- ./../caddy_data:/data
2021-04-07 09:00:29 +02:00
depends_on:
- django
2021-06-14 09:20:30 +02:00
redis:
image: redis:alpine
2021-09-03 17:57:31 +02:00
restart: unless-stopped
2021-06-14 09:20:30 +02:00
expose:
- 6379
2021-04-07 09:00:29 +02:00
gulp:
2021-04-16 18:35:06 +02:00
build: Dockerfiles/gulp
2021-04-07 09:00:29 +02:00
restart: always
command: gulp
volumes:
2021-04-16 18:35:06 +02:00
- .:/app/
2021-04-07 09:00:29 +02:00
depends_on:
- caddy