django-template/docker-compose.yaml

90 lines
1.7 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
2023-07-24 14:48:40 +02:00
networks:
default:
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
2023-07-24 14:48:40 +02:00
networks:
default:
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
2023-07-24 14:48:40 +02:00
networks:
default:
aliases:
- django.localhost
redis:
image: redis:alpine
container_name: ${PROJECT_NAME}-redis
restart: "no"
expose:
- ${REDIS_PORT}
2023-07-24 14:48:40 +02:00
networks:
default:
mailhog:
image: mailhog/mailhog:latest
2022-07-29 15:15:22 +02:00
container_name: ${PROJECT_NAME}-mailhog
restart: "no"
expose:
- 1025
2023-07-24 14:48:40 +02:00
networks:
default:
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
2023-07-24 14:48:40 +02:00
entrypoint: gulp dev
2023-04-13 13:00:18 +02:00
restart: "no"
2023-07-24 14:48:40 +02:00
expose:
- 3000
- 3001
2023-04-13 13:00:18 +02:00
volumes:
- .:/usr/src/app/
2023-07-24 14:48:40 +02:00
- /usr/src/app/node_modules
depends_on:
- caddy
networks:
default: