-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Overide gh docker compose with docker compose services
- Loading branch information
Showing
4 changed files
with
13 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,7 @@ | ||
services: | ||
db: | ||
image: postgres:16-alpine | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: postgres | ||
volumes: | ||
- postgres-data16:/var/lib/postgresql/data | ||
|
||
redis: | ||
image: redis:6-alpine | ||
volumes: | ||
- redis-data:/data | ||
|
||
qdrant: | ||
image: qdrant/qdrant:v1.11.3 | ||
ports: | ||
- "6333:6333" | ||
volumes: | ||
- qdrant_data:/qdrant/storage | ||
|
||
web: | ||
image: $DOCKER_IMAGE_BACKEND | ||
env_file: !reset null | ||
# To attach to container with stdin `docker attach <container_name>` | ||
# Used for python debugging. | ||
stdin_open: true | ||
|
@@ -32,35 +12,9 @@ services: | |
CI: "true" | ||
APP_ENVIRONMENT: CI | ||
APP_TYPE: web | ||
DJANGO_DEBUG: "true" | ||
DJANGO_SECRET_KEY: RANDOM_KEY | ||
# -- Domain configurations | ||
DJANGO_ALLOWED_HOSTS: "*" | ||
APP_DOMAIN: localhost:8000 | ||
APP_HTTP_PROTOCOL: http | ||
APP_FRONTEND_HOST: http://localhost:3000 | ||
SESSION_COOKIE_DOMAIN: localhost | ||
CSRF_COOKIE_DOMAIN: localhost | ||
# Database config | ||
DATABASE_NAME: postgres | ||
DATABASE_USER: postgres | ||
DATABASE_PASSWORD: postgres | ||
DATABASE_HOST: db | ||
DATABASE_PORT: 5432 | ||
# # Redis config | ||
CELERY_REDIS_URL: ${CELERY_REDIS_URL:-redis://redis:6379/0} | ||
DJANGO_CACHE_REDIS_URL: ${DJANGO_CACHE_REDIS_URL:-redis://redis:6379/1} | ||
# Email config | ||
EMAIL_FROM: ${EMAIL_FROM:-togglecorp-dev <[email protected]>} | ||
volumes: | ||
- ./:/code | ||
- ./ci-share/:/ci-share/ | ||
# - ./coverage/:/code/coverage/ | ||
depends_on: | ||
- db | ||
- redis | ||
|
||
volumes: | ||
postgres-data16: | ||
redis-data: | ||
qdrant_data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters