django-template/docker-compose.yaml

72 lines
1.4 KiB
YAML
Raw Normal View History

version: '3.8'
services:
postgresql:
image: postgres
container_name: ${PROJECT_NAME}-postgresql
restart: "no"
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
ports:
- ${DB_PORT}:5432
django:
build:
context: ./
dockerfile: ./Dockerfiles/django/Dockerfile
container_name: ${PROJECT_NAME}-django
restart: "no"
entrypoint: /django-launcher.sh
volumes:
- .:/usr/src/app/
2023-07-21 09:37:32 +02:00
env_file:
- .env
expose:
- 8000
depends_on:
- postgresql
links:
- redis
caddy:
image: caddy:alpine
container_name: ${PROJECT_NAME}-caddy
restart: "no"
ports:
2023-07-21 09:37:32 +02:00
- ${CADDY_PORT_HTTP}:80
- ${CADDY_PORT_HTTPS}:443
volumes:
2022-08-01 15:52:14 +02:00
- ./Caddyfile.dev:/etc/caddy/Caddyfile
- ./caddy_data:/data
- .:/usr/src/app/
depends_on:
- django
redis:
image: redis:alpine
container_name: ${PROJECT_NAME}-redis
restart: "no"
expose:
- ${REDIS_PORT}
mailhog:
image: mailhog/mailhog:latest
2022-07-29 15:15:22 +02:00
container_name: ${PROJECT_NAME}-mailhog
restart: "no"
expose:
- 1025
2023-04-13 13:00:18 +02:00
2023-07-05 15:29:32 +02:00
2023-04-13 13:00:18 +02:00
gulp:
build:
context: ./
2023-07-05 15:29:32 +02:00
dockerfile: ./Dockerfiles/gulp/Dockerfile
2023-04-13 13:00:18 +02:00
container_name: ${PROJECT_NAME}-gulp
entrypoint: gulp
restart: "no"
volumes:
- .:/usr/src/app/