80 lines
2.3 KiB
YAML
80 lines
2.3 KiB
YAML
version: "3"
|
|
services:
|
|
postgres:
|
|
image: postgres:14.1
|
|
environment:
|
|
- POSTGRES_USER=${POSTGRES_USER:-admin}
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-development}
|
|
- POSTGRES_DB=${POSTGRES_DB:-default}
|
|
volumes:
|
|
- "./data/postgres:/var/lib/postgres/data"
|
|
|
|
minio:
|
|
image: minio/minio:latest
|
|
ports:
|
|
- "9190:9000"
|
|
- "9191:9001"
|
|
volumes:
|
|
- "./data/minio/:/bitnami/minio/data"
|
|
|
|
redis:
|
|
image: redis
|
|
|
|
shoppy_server:
|
|
image: ghcr.io/pablo-moreno/shoppy
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
- DEBUG=${DEBUG:-False}
|
|
- DATABASE_URL=${DATABASE_URL:-postgres://admin:development@postgres:5432/default}
|
|
- S3_HOST=${S3_HOST:-http://172.17.0.1:9190}
|
|
- S3_LOCATION=${S3_LOCATION:-backend}
|
|
- S3_STORAGE_BUCKET_NAME=${S3_STORAGE_BUCKET_NAME:-shoppy}
|
|
- S3_ENDPOINT_URL=${S3_ENDPOINT_URL:-http://172.17.0.1:9190}
|
|
- S3_ENABLED=${S3_ENABLED:-True}
|
|
- S3_ACCESS_KEY_ID=${S3_ACCESS_KEY_ID:-shoppy-access-key}
|
|
- S3_SECRET_ACCESS_KEY=${S3_SECRET_ACCESS_KEY:-shoppy-secret-key}
|
|
- CELERY_BROKER_URL=${CELERY_BROKER_URL:-redis://redis:6379/0}
|
|
- RUN_SERVER=TRUE
|
|
links:
|
|
- postgres
|
|
- minio
|
|
- redis
|
|
depends_on:
|
|
- postgres
|
|
- minio
|
|
- redis
|
|
|
|
shoppy_tasks:
|
|
image: ghcr.io/pablo-moreno/shoppy
|
|
environment:
|
|
- DEBUG=${DEBUG:-False}
|
|
- DATABASE_URL=${DATABASE_URL:-postgres://admin:development@postgres:5432/default}
|
|
- S3_HOST=${S3_HOST:-http://172.17.0.1:9190}
|
|
- S3_LOCATION=${S3_LOCATION:-backend}
|
|
- S3_STORAGE_BUCKET_NAME=${S3_STORAGE_BUCKET_NAME:-shoppy}
|
|
- S3_ENDPOINT_URL=${S3_ENDPOINT_URL:-http://172.17.0.1:9190}
|
|
- S3_ENABLED=${S3_ENABLED:-True}
|
|
- S3_ACCESS_KEY_ID=${S3_ACCESS_KEY_ID:-shoppy-access-key}
|
|
- S3_SECRET_ACCESS_KEY=${S3_SECRET_ACCESS_KEY:-shoppy-secret-key}
|
|
- CELERY_BROKER_URL=${CELERY_BROKER_URL:-redis://redis:6379/0}
|
|
- RUN_CELERY=TRUE
|
|
links:
|
|
- postgres
|
|
- minio
|
|
- redis
|
|
depends_on:
|
|
- postgres
|
|
- minio
|
|
- redis
|
|
|
|
shoppy_migrations:
|
|
image: ghcr.io/pablo-moreno/shoppy
|
|
environment:
|
|
- DATABASE_URL=${DATABASE_URL:-postgres://admin:development@postgres:5432/default}
|
|
command: ["python", "manage.py", "migrate"]
|
|
links:
|
|
- postgres
|
|
depends_on:
|
|
- postgres
|