django-template/docker-compose.staging.yaml

68 lines
1.3 KiB
YAML
Raw Normal View History

2021-04-07 09:00:29 +02:00
version: '3.1'
services:
db:
image: postgres
restart: always
volumes:
- ./../postgres_data:/var/lib/postgresql/data
environment:
2021-04-21 16:58:03 +02:00
POSTGRES_DB: mibasededatos
2021-04-07 09:00:29 +02:00
POSTGRES_PASSWORD: postgres
expose:
- 5432
django:
build: ./
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-04-07 09:00:29 +02:00
DB_HOST: db
2021-04-16 18:35:06 +02:00
DB_NAME: "guitarlions"
2021-04-07 09:00:29 +02:00
DB_USER: "postgres"
DB_PASSWORD: "postgres"
DB_PORT: "5432"
2021-04-16 18:35:06 +02:00
DOMAIN: ""
DOMAIN_URL: "https://"
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-04-16 18:35:06 +02:00
EMAIL_USE_TLS: True
EMAIL_HOST: ""
EMAIL_USE_TLS: "True"
EMAIL_PORT: "2525"
2021-04-07 09:00:29 +02:00
EMAIL_USER: ""
EMAIL_PASSWORD: ""
expose:
- 8000
depends_on:
- db
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
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