Spaces:
Running
Running
File size: 1,253 Bytes
09ecaf7 ddbf818 09ecaf7 ddbf818 09ecaf7 ddbf818 dcc22a4 09ecaf7 23d1df7 09ecaf7 23d1df7 09ecaf7 bc8e3e9 09ecaf7 1686de5 ddbf818 09ecaf7 dcc22a4 bc8e3e9 dcc22a4 bc8e3e9 ddbf818 09ecaf7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
version: "3.8"
services:
postgres:
image: postgres:16
restart: always
environment:
POSTGRES_USER: promptaid
POSTGRES_PASSWORD: promptaid
POSTGRES_DB: promptaid
ports:
- "5434:5432"
volumes:
- pgdata:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- "5050:80"
depends_on:
- postgres
minio:
image: minio/minio:latest
restart: always
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: promptaid
MINIO_ROOT_PASSWORD: promptaid
MINIO_DEFAULT_BUCKETS: promptaid
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio_data:/data
depends_on:
- postgres
app:
build: .
ports:
- "8000:8000"
env_file:
- .env
environment:
- DATABASE_URL=postgresql://promptaid:promptaid@postgres:5432/promptaid
- S3_ENDPOINT=http://minio:9000 # Override for container networking
depends_on:
- postgres
- minio
volumes:
- ./py_backend:/app
- /app/__pycache__
volumes:
pgdata:
minio_data:
|